Add .spam command
Because fuck it, why not
This commit is contained in:
parent
d55af1b501
commit
efe595ba4e
7
ubot.py
7
ubot.py
@ -128,6 +128,12 @@ async def edit(event):
|
|||||||
rpl += f'**Python:** {python_version()}\n'
|
rpl += f'**Python:** {python_version()}\n'
|
||||||
await event.edit(rpl)
|
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'):
|
if msg.startswith('.sauce'):
|
||||||
rpl = 'Sauce: [ghnou/ubot](https://git.ghnou.su/ghnou/ubot)'
|
rpl = 'Sauce: [ghnou/ubot](https://git.ghnou.su/ghnou/ubot)'
|
||||||
await event.edit(rpl)
|
await event.edit(rpl)
|
||||||
@ -141,6 +147,7 @@ async def edit(event):
|
|||||||
rpl += '.purgeme - Purge messages.\n'
|
rpl += '.purgeme - Purge messages.\n'
|
||||||
rpl += '.sh - Execute a shell command.\n'
|
rpl += '.sh - Execute a shell command.\n'
|
||||||
rpl += '.sys - Show system information.\n'
|
rpl += '.sys - Show system information.\n'
|
||||||
|
rpl += '.spam - Spam messages.. yea.\n'
|
||||||
rpl += '.sauce - Get the bot\'s source code.\n'
|
rpl += '.sauce - Get the bot\'s source code.\n'
|
||||||
rpl += '.help - Show this help message.\n'
|
rpl += '.help - Show this help message.\n'
|
||||||
await event.edit(rpl)
|
await event.edit(rpl)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user