mirror of
https://github.com/imayushsaini/Bombsquad-Ballistica-Modded-Server.git
synced 2025-10-20 00:00:39 +00:00
push update
This commit is contained in:
parent
76054b7c26
commit
f2842ca214
3 changed files with 7 additions and 30 deletions
5
dist/ba_root/mods/changelogs.json
vendored
5
dist/ba_root/mods/changelogs.json
vendored
|
|
@ -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"
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
2
dist/ba_root/mods/tools/ServerUpdate.py
vendored
2
dist/ba_root/mods/tools/ServerUpdate.py
vendored
|
|
@ -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,())
|
||||||
|
|
|
||||||
30
dist/ba_root/mods/tools/discordbot.py
vendored
30
dist/ba_root/mods/tools/discordbot.py
vendored
|
|
@ -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')
|
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue