Skip to content

Commit 2acdb60

Browse files
committed
Add support for mention prefixes
1 parent 345c8d8 commit 2acdb60

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

bot.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@
4242

4343
class Modmail(commands.Bot):
4444

45-
version = '1.1.5'
45+
version = '1.1.6'
4646

4747
def __init__(self):
4848
super().__init__(command_prefix=self.get_pre)
@@ -80,7 +80,7 @@ def token(self):
8080
async def get_pre(bot, message):
8181
'''Returns the prefix.'''
8282
p = bot.config.get('PREFIX') or 'm.'
83-
return [p, bot.user.mention+' ']
83+
return [p, f'<@{bot.user.id}> ', f'<@!{bot.user.id}> ']
8484

8585
async def on_connect(self):
8686
print('---------------')

0 commit comments

Comments
 (0)