This commit is contained in:
git-bruh 2021-02-06 12:23:49 +05:30
parent cd7967a225
commit d81fe7199d
No known key found for this signature in database
GPG key ID: E1475C50075ADCE6
2 changed files with 9 additions and 1 deletions

View file

@ -26,6 +26,8 @@ A simple non-puppeting bridge between Matrix and Discord written in Python.
}
```
* Logs are saved to the `bot.log` file in `$PWD`.
* Normal Discord bot functionality like commands can be added to the bot via [cogs](https://discordpy.readthedocs.io/en/latest/ext/commands/cogs.html), example [here](https://gist.github.com/EvieePy/d78c061a4798ae81be9825468fe146be).
* Replace `guild.emojis` with `self.discord_client.emojis` (`Callbacks()`, `process_message()`) to make the Discord bot use emojis from ALL it's guilds.

View file

@ -524,7 +524,13 @@ class Callbacks(object):
async def main():
logging.basicConfig(level=logging.INFO)
logging.basicConfig(
level=logging.INFO,
handlers=[
logging.FileHandler("bot.log"),
logging.StreamHandler()
]
)
retry = 2