Compare commits
No commits in common. "master" and "0.2.0" have entirely different histories.
@ -1,12 +1,12 @@
|
||||
from config.config_types import factory
|
||||
import config.config_types as c_t
|
||||
import discord
|
||||
from mod_base import BaseModule
|
||||
from mod_base import BasePython
|
||||
|
||||
import traceback
|
||||
|
||||
|
||||
class Logging(BaseModule):
|
||||
class Logging(BasePython):
|
||||
def __init__(self, client):
|
||||
super().__init__(client)
|
||||
self.config.register("error_channels", factory(c_t.List, factory(c_t.discord_types.Channel, client)))
|
||||
@ -42,8 +42,6 @@ class Logging(BaseModule):
|
||||
try:
|
||||
await channel.send(f"New {title.lower()} - {h[2:8]}:")
|
||||
for embed in embeds:
|
||||
while not self.client.is_ready:
|
||||
await asyncio.sleep(1)
|
||||
await channel.send(embed=embed)
|
||||
except: # TODO: C'est pas beau mais il ne faut absolument pas lever une exception pour éviter les récursions infinies
|
||||
print(traceback.format_exc())
|
||||
|
||||
@ -1,10 +1,10 @@
|
||||
name = "Logging"
|
||||
description = "Use discord to display bot logs"
|
||||
|
||||
version = "1.0.0"
|
||||
version = "0.2.0"
|
||||
bot_version = "~=0.1.0"
|
||||
|
||||
metamodule = false
|
||||
|
||||
[dependencies]
|
||||
mod_base = ">=1.0.0"
|
||||
mod_base = "~=0.1.0"
|
||||
Loading…
Reference in New Issue
Block a user