1
0
Fork 0
mirror of synced 2024-05-19 12:02:29 +12:00

Added a couple more stats to show for overwatch

This commit is contained in:
Phxntxm 2016-07-14 13:23:11 -05:00
parent 6abc5a13dc
commit 797c4bf8b5
2 changed files with 4 additions and 6 deletions

View file

@ -110,11 +110,8 @@ class Core:
if num > 100:
await self.bot.say("What die has more than 100 sides? Please, calm down")
return
#valueStr = str(random.randint(1, num))
valueStr = ", ".join("{}".format(random.randint(1, num)) for i in range(0, int(dice)))
#for i in range(1, int(dice)):
#value = random.randint(1, num)
#valueStr += ", {}".format(value)
if int(dice) == 1:
fmt = '{0.message.author.name} has rolled a {2} sided die and got the number {3}!'
@ -151,7 +148,7 @@ class Core:
cursor.execute('select * from tags where server_id=%s and tag=%s', (ctx.message.server.id, tag))
response = cursor.fetchone()
if response is not None:
await self.bot.say('That tag already exists! Please remove it and re-add it!')
await self.bot.say('That tag already exists! Please remove it and re-add it if you want to change it')
config.closeConnection()
return
sql = 'insert into tags (server_id, tag, result) values (%s, %s, %s)'

View file

@ -8,7 +8,8 @@ import urllib.error
import json
base_url = "https://owapi.net/api/v2/u/"
check_g_stats = ["eliminations","deaths",'kpd','wins','losses','time_played']
check_g_stats = ["eliminations","deaths",'kpd','wins','losses','time_played',
'cards','damage_done','healing_done','multikills']
check_o_stats = ['wins','losses']
class Overwatch: