From 62dd87dcaa7e81a9637b41a51b047027d04572d2 Mon Sep 17 00:00:00 2001 From: chewingbever Date: Wed, 26 Aug 2020 18:13:54 +0200 Subject: [PATCH] Added to README --- README.md | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/README.md b/README.md index 142d880..e7fb410 100644 --- a/README.md +++ b/README.md @@ -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.