Fixed dict lookup issues.
This commit is contained in:
parent
cfa71c5b23
commit
dfd0f054a9
11
robottas.py
11
robottas.py
|
@ -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__':
|
||||
|
|
Loading…
Reference in New Issue