mirror of
https://git.sdf.org/tamservo/robottas.git
synced 2025-11-19 04:23:39 -05:00
Compare commits
5 Commits
5b58bfbb84
...
0e837958d9
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
0e837958d9 | ||
|
|
116d69ece9 | ||
|
|
35f818d00d | ||
|
|
3f3b8c53b2 | ||
|
|
f197ae3ab5 |
13
robottas.py
13
robottas.py
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user