-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
ee6e2be
commit beb8143
Showing
5 changed files
with
40 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
import discord | ||
import asyncio | ||
|
||
async def on_message(message, conf): | ||
if message.author.id in conf['donut-ids']: | ||
try: | ||
await message.add_reaction("🍩") | ||
await message.add_reaction("🇩") | ||
await message.add_reaction("🇴") | ||
await message.add_reaction("🇳") | ||
await message.add_reaction("🇺") | ||
await message.add_reaction("🇹") | ||
await message.add_reaction("🇸") | ||
except discord.HTTPException as result: | ||
if result.status == 403 and conf['strict-donuts']: | ||
await message.delete() | ||
bot_response = await message.channel.send("Donut be naughty...") | ||
await asyncio.sleep(10) | ||
await bot_response.delete() |