push update

This commit is contained in:
imayushsaini 2021-12-29 13:51:20 +05:30
parent 76054b7c26
commit f2842ca214
3 changed files with 7 additions and 30 deletions

View file

@ -6,5 +6,10 @@
"62":{ "62":{
"log":"bug fix in logger.py", "log":"bug fix in logger.py",
"time":"2 DEC 2021 1:40PM IST" "time":"2 DEC 2021 1:40PM IST"
},
"63":{
"log":"Logger bug fix, integrated discordbot : have fun :)",
"time":"28 DEC 2021"
} }
} }

View file

@ -4,7 +4,7 @@ import _thread
import urllib.request import urllib.request
from efro.terminal import Clr from efro.terminal import Clr
import json import json
VERSION=62 VERSION=63
def check(): def check():
_thread.start_new_thread(updateProfilesJson,()) _thread.start_new_thread(updateProfilesJson,())

View file

@ -117,7 +117,7 @@ def get_live_players_msg():
pass pass
if not msg: if not msg:
msg="```No one``` \n" msg="```No one``` \n"
msg_2="\n\n***Current:v*** "+stats['playlist']['current'] +"\n ***Next: ***"+stats['playlist']['next'] +"\n\n." msg_2="\n\n***Current: *** "+stats['playlist']['current'] +"\n ***Next: ***"+stats['playlist']['next'] +"\n\n."
return msg_1+msg+msg_2 return msg_1+msg+msg_2
def get_chats(): def get_chats():
@ -193,31 +193,3 @@ class BsDataThread(object):
# stats['teamInfo']=self.getTeamInfo() # stats['teamInfo']=self.getTeamInfo()
# import discord
# import asyncio
# class MyClient(discord.Client):
# def __init__(self, *args, **kwargs):
# super().__init__(*args, **kwargs)
# # create the background task and run it in the background
# self.bg_task = self.loop.create_task(self.my_background_task())
# async def on_ready(self):
# print(f'Logged in as {self.user} (ID: {self.user.id})')
# print('------')
# async def my_background_task(self):
# await self.wait_until_ready()
# counter = 0
# channel = self.get_channel(924697770554687548) # channel ID goes here
# while not self.is_closed():
# counter += 1
# await channel.send(counter)
# await asyncio.sleep(60) # task runs every 60 seconds
# client = MyClient()
# client.run('OTI0NjQ4NjU0MzgyNDUyODA2.YchoKg.I4ycF_0WPkP8FANo_Xlrqa2BWgg')