Fixed dict lookup issues.

This commit is contained in:
tamservo 2023-07-30 21:15:38 -04:00
parent cfa71c5b23
commit dfd0f054a9
2 changed files with 6 additions and 5 deletions

0
RobottasSignalr.py Normal file → Executable file
View File

View File

@ -6,6 +6,7 @@ import collections.abc
import json
import os
import random
import re
import sqlite3
from subprocess import Popen
import time
@ -536,7 +537,7 @@ class Robottas(commands.Bot):
pass
async def decode_watched(self, w):
def decode_watched(self, w):
if w == 0:
return 'Not Watched Yet'
else:
@ -830,12 +831,12 @@ class Robottas(commands.Bot):
@self.command()
async def danger(ctx):
await ctx.send("That's some dangerous driving! " + name_dict["HAM"])
await ctx.send("That's some dangerous driving! " + self.name_dict["HAM"])
@self.command()
async def dotd(ctx):
await ctx.send( "I don't know, probably " + name_dict["ALB"] )
await ctx.send( "I don't know, probably " + self.name_dict["ALB"] )
@self.command()
@ -845,7 +846,7 @@ class Robottas(commands.Bot):
@self.command()
async def gp2(ctx):
await ctx.send("GP2 engine! GP2! ARGHHH! " + name_dict["ALO"])
await ctx.send("GP2 engine! GP2! ARGHHH! " + self.name_dict["ALO"])
@self.command()
@ -932,7 +933,7 @@ class Robottas(commands.Bot):
@self.command()
async def tyres(ctx):
await ctx.send("Bono, my tyres are gone " + name_dict["HAM"])
await ctx.send("Bono, my tyres are gone " + self.name_dict["HAM"])
if __name__ == '__main__':