diff --git a/RobottasSignalr.py b/RobottasSignalr.py old mode 100644 new mode 100755 diff --git a/robottas.py b/robottas.py index b6103d4..59733a6 100755 --- a/robottas.py +++ b/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__':