|
|
@ -61,6 +61,7 @@ class DiscordClient(commands.Bot): |
|
|
|
self.loop.create_task(self.loaded_extensions["stats_presence"].task()) |
|
|
|
self.loop.create_task(self.loaded_extensions["vip_roles"].task()) |
|
|
|
self.loop.create_task(self.loaded_extensions["ban_roles"].task()) |
|
|
|
self.loop.create_task(self.loaded_extensions["register"].task()) |
|
|
|
|
|
|
|
def setup_events(self): |
|
|
|
@self.event |
|
|
@ -159,6 +160,9 @@ class DiscordClient(commands.Bot): |
|
|
|
else: |
|
|
|
print("backend is up, continue build app") |
|
|
|
|
|
|
|
def utime2human(self, utime): |
|
|
|
return datetime.fromtimestamp(utime).strftime('%H:%M:%S %d.%m.%Y') |
|
|
|
|
|
|
|
if __name__ == "__main__": |
|
|
|
print(f"Build date: {os.getenv('BUILDDATE', 'not setted in env')}") |
|
|
|
parser = argparse.ArgumentParser() |
|
|
|