log
This commit is contained in:
parent
cd7967a225
commit
d81fe7199d
2 changed files with 9 additions and 1 deletions
|
@ -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).
|
* 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.
|
* Replace `guild.emojis` with `self.discord_client.emojis` (`Callbacks()`, `process_message()`) to make the Discord bot use emojis from ALL it's guilds.
|
||||||
|
|
8
main.py
8
main.py
|
@ -524,7 +524,13 @@ class Callbacks(object):
|
||||||
|
|
||||||
|
|
||||||
async def main():
|
async def main():
|
||||||
logging.basicConfig(level=logging.INFO)
|
logging.basicConfig(
|
||||||
|
level=logging.INFO,
|
||||||
|
handlers=[
|
||||||
|
logging.FileHandler("bot.log"),
|
||||||
|
logging.StreamHandler()
|
||||||
|
]
|
||||||
|
)
|
||||||
|
|
||||||
retry = 2
|
retry = 2
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue