mirror of
https://git.sdf.org/tamservo/robottas.git
synced 2025-11-14 18:13:47 -05:00
Fixed dict lookup issues.
This commit is contained in:
0
RobottasSignalr.py
Normal file → Executable file
0
RobottasSignalr.py
Normal file → Executable file
11
robottas.py
11
robottas.py
@@ -6,6 +6,7 @@ import collections.abc
|
|||||||
import json
|
import json
|
||||||
import os
|
import os
|
||||||
import random
|
import random
|
||||||
|
import re
|
||||||
import sqlite3
|
import sqlite3
|
||||||
from subprocess import Popen
|
from subprocess import Popen
|
||||||
import time
|
import time
|
||||||
@@ -536,7 +537,7 @@ class Robottas(commands.Bot):
|
|||||||
pass
|
pass
|
||||||
|
|
||||||
|
|
||||||
async def decode_watched(self, w):
|
def decode_watched(self, w):
|
||||||
if w == 0:
|
if w == 0:
|
||||||
return 'Not Watched Yet'
|
return 'Not Watched Yet'
|
||||||
else:
|
else:
|
||||||
@@ -830,12 +831,12 @@ class Robottas(commands.Bot):
|
|||||||
|
|
||||||
@self.command()
|
@self.command()
|
||||||
async def danger(ctx):
|
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()
|
@self.command()
|
||||||
async def dotd(ctx):
|
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()
|
@self.command()
|
||||||
@@ -845,7 +846,7 @@ class Robottas(commands.Bot):
|
|||||||
|
|
||||||
@self.command()
|
@self.command()
|
||||||
async def gp2(ctx):
|
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()
|
@self.command()
|
||||||
@@ -932,7 +933,7 @@ class Robottas(commands.Bot):
|
|||||||
|
|
||||||
@self.command()
|
@self.command()
|
||||||
async def tyres(ctx):
|
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__':
|
if __name__ == '__main__':
|
||||||
|
|||||||
Reference in New Issue
Block a user