Add .spam command

Because fuck it, why not
This commit is contained in:
Michael De Roover 2021-04-15 00:15:29 +02:00
parent d55af1b501
commit efe595ba4e
Signed by: vim
GPG Key ID: 075496E232CE04CB

View File

@ -128,6 +128,12 @@ async def edit(event):
rpl += f'**Python:** {python_version()}\n'
await event.edit(rpl)
if msg.startswith('.spam'):
cnt = int(msg.split(' ', 2)[1])
msg = msg.split(' ', 2)[2]
for i in range(0,cnt):
await event.respond(msg)
if msg.startswith('.sauce'):
rpl = 'Sauce: [ghnou/ubot](https://git.ghnou.su/ghnou/ubot)'
await event.edit(rpl)
@ -141,6 +147,7 @@ async def edit(event):
rpl += '.purgeme - Purge messages.\n'
rpl += '.sh - Execute a shell command.\n'
rpl += '.sys - Show system information.\n'
rpl += '.spam - Spam messages.. yea.\n'
rpl += '.sauce - Get the bot\'s source code.\n'
rpl += '.help - Show this help message.\n'
await event.edit(rpl)