Compare commits

..

5 Commits

Author SHA1 Message Date
tamservo@mx.sdf.org
0e837958d9 Added help line for \!wall 2024-03-09 15:22:07 -05:00
tamservo
116d69ece9 added wall cmd. 2024-03-09 14:27:24 -05:00
tamservo
35f818d00d Logging messages from db. 2024-03-09 10:14:14 -05:00
tamservo
3f3b8c53b2 Setting up logging 2024-03-09 10:07:12 -05:00
tamservo
f197ae3ab5 Add icon for Bearman 2024-03-09 10:01:14 -05:00

View File

@@ -19,6 +19,8 @@ import discord
from discord.ext import commands, tasks
logging.basicConfig(stream=sys.stderr, level=logging.DEBUG)
class Robottas(commands.Bot):
@@ -504,6 +506,7 @@ class Robottas(commands.Bot):
try:
for message in messages:
await self.process_message(message)
logging.debug(message)
await asyncio.sleep(3)
except:
@@ -899,6 +902,7 @@ class Robottas(commands.Bot):
'20': '<:MAG:1067883814992486510>',
'23': '<:ALB:1067874026871074887>',
'2': '<:SAR:1067890949197414410>',
'38': ':teddy_bear:',
}
# Holds dictionary for driver 3-letter code to icon
@@ -925,6 +929,7 @@ class Robottas(commands.Bot):
'MAG': '<:MAG:1067883814992486510>',
'ALB': '<:ALB:1067874026871074887>',
'SAR': '<:SAR:1067890949197414410>',
'BEA': ':teddy_bear:',
}
# Holds dictionary for race states to icons
@@ -997,7 +1002,7 @@ class Robottas(commands.Bot):
"!q1cut - Show drivers in Q1 cut positions.\n" +
"!q2cut - Show drivers in Q2 cut positions.\n" +
"!rbdelay - Set the race messaging delay in seconds.\n" +
"The following display race control messages:\n" +
"The following display media:\n" +
" !animal\n" +
" !bwoken\n" +
" !calm\n" +
@@ -1012,6 +1017,7 @@ class Robottas(commands.Bot):
" !penalty\n" +
" !stupid\n" +
" !undercut\n" +
" !wall - Lance is in the wall\n" +
"The following register / unregister scheduled next race / event messages.\n" +
"!register_next_race_alerts - get an alert for the next race on Monday.\n" +
"!register_next_event_alerts - get an alert for the next event on Monday.\n" +
@@ -1276,6 +1282,11 @@ class Robottas(commands.Bot):
await self.send_image(ctx, "images/bwoken.png")
await self.send_audio(ctx, "bwoken.mp3", "audio/bwoken.mp3")
@self.command()
async def wall(ctx):
await self.send_image(ctx, "images/wall.mp4")
## Calendar Commands
# Give days, hours, minutes until the next event