tux
tux copied to clipboard
Tux is an all in one bot for the All Things Linux discord server.
https://github.com/allthingslinux/tux/blob/b737ea644ed1e4c831242eb0cb1cbe65c8db8dd4/tux/handlers/event.py#L95 ```python return channel = self.bot.get_channel(payload.channel_id) if channel is None or channel.id != 1172343581495795752 or not isinstance(channel, discord.TextChannel): return message = await channel.fetch_message(payload.message_id) emoji = payload.emoji if ( any(0x1F1E3
https://github.com/allthingslinux/tux/blob/b737ea644ed1e4c831242eb0cb1cbe65c8db8dd4/tux/handlers/event.py#L76 ```python return channel = self.bot.get_channel(payload.channel_id) if channel is None or channel.id != 1172343581495795752 or not isinstance(channel, discord.TextChannel): return message = await channel.fetch_message(payload.message_id) emoji = payload.emoji if ( any(0x1F1E3
Things to consider: - [ ] Test mod commands thoroughly, test all possible outcomes and fallbacks - [ ] Refactor permissions checks - [ ] Add caching methods for permissions...
Running the command /autothread [channel] will add the channel to a list of channels that an event listener will check for on new messages and create threads for said message.
If you want to forcefully set yourself as afk regardless if you send a message after the fact for people that maybe want to set afk status and need to...
to discuss proper automod regex for blocking rm rf jokes properly let's move from the tux automod to discord native automod so messages are not sent at all
To avoid being rate limited, we should "queue" out sending dms if a lot react at once + also add in a cooldown if someone spam clicks the emoji
https://cheat.sh/