Added to README

master
Jef Roosens 2020-08-26 18:13:54 +02:00
parent 9749c3ab2d
commit 62dd87dcaa
1 changed files with 14 additions and 0 deletions

View File

@ -75,3 +75,17 @@ These three decorators are the bread and butter of Frank. Let's break them down:
- `frank.default` defines the command that should be run if the module is called without explicitely giving a command.
For example, if you call `fr examp` without specifying a command, it will run the default command. This is useful for
making a command that's used very often easier to execute.
In the end, all you need to do is the following in your main script:
```python
from frank import Frank
# Or whatever your package containing your modules is called
from modules import ExampleMod
if __name__ == '__main__':
client = Frank([ExampleMod])
client.run(YOUR_DISCORD_TOKEN)
```
You can obtain this token from the Discord developer page.