python3.9,removed windows build,kick vote,ban mute commands , rjcd

This commit is contained in:
imayushsaini 2021-11-10 17:26:07 +05:30
parent 94bdfb531a
commit dbe040a017
2453 changed files with 3797 additions and 437553 deletions

View file

@ -2,18 +2,18 @@
""" TODO need to set coordinates of text node , move timer values to settings.json """
from ba._enums import TimeType
from ba._generated.enums import TimeType
import ba, _ba
import setting
class textonmap:
def __init__(self):
data = setting.get_settings_data()['textonmap']
left = data['bottom left watermark']
top = data['top watermark']
self.index = 0
self.highlights = data['center highlights']
self.left_watermark(left)
@ -31,10 +31,10 @@ class textonmap:
'position':(0,138),
'color':(1,1,1)
})
self.delt = ba.timer(7,node.delete)
self.index = int((self.index+1)%len(self.highlights))
def left_watermark(self, text):
node = _ba.newnode('text',
attrs={
@ -46,7 +46,7 @@ class textonmap:
'position':(-480,20),
'color':(1,1,1)
})
def top_message(self, text):
node = _ba.newnode('text',
attrs={
@ -58,4 +58,3 @@ class textonmap:
'position':(0,138),
'color':(1,1,1)
})