Add warm and banana commands

Signed-off-by: Ari Archer <ari.web.xyz@gmail.com>
This commit is contained in:
Ari Archer 2022-10-02 05:53:40 +03:00
parent ef3db53e40
commit 6d4a34e0ea
Signed by untrusted user who does not match committer: ari
GPG key ID: A50D5B4B599AF8A2
2 changed files with 29 additions and 0 deletions

1
.gitignore vendored
View file

@ -163,3 +163,4 @@ cython_debug/
.env
bot.db
config.json
.config

View file

@ -495,6 +495,34 @@ o o o o o o o o o CPU: {platform.processor()} [{cpu_usage}]
await self.bot._change_status()
await self._send_message(f"Changed status to `{uncode(status)}`")
async def cmd_warm(
self,
message: discord.Message,
command: List[List[str]],
) -> None:
"""Warm a user
Usage: warm <user>"""
if not (warm := command_to_str(command)):
await self._send_help("warm", message)
return
await self._send_message(f":tea::coffee::heart_on_fire: {warm} :heart_on_fire::coffee::tea:")
async def cmd_banana(
self,
message: discord.Message,
command: List[List[str]],
) -> None:
"""Banana a user
Usage: banana <user>"""
if not (banana := command_to_str(command)):
await self._send_help("banana", message)
return
await self._send_message(f":banana: {banana} :banana:")
class Bot(discord.Client):
"""The bot"""