Compare commits
No commits in common. "master" and "v0.1" have entirely different histories.
|
@ -1,29 +0,0 @@
|
||||||
<!--- Before submitting an issue, check if it hasn't already been submitted by someone else. --->
|
|
||||||
|
|
||||||
### Summary
|
|
||||||
|
|
||||||
<!--- Describe the issue in a short and concise way. --->
|
|
||||||
|
|
||||||
### Steps to reproduce
|
|
||||||
|
|
||||||
<!--- List the steps needed to reproduce the issue. --->
|
|
||||||
|
|
||||||
### What is the current behavior?
|
|
||||||
|
|
||||||
<!--- Describe what's actually happening. --->
|
|
||||||
|
|
||||||
### What is the expected behavior?
|
|
||||||
|
|
||||||
<!--- Describe what's supposed to happen. --->
|
|
||||||
|
|
||||||
### Relevant error messages
|
|
||||||
|
|
||||||
<!--- Put any error messages that occur because of this bug here. Please format them in code blocks, as this is much
|
|
||||||
easier to read. --->
|
|
||||||
|
|
||||||
### Possible fixes
|
|
||||||
|
|
||||||
<!--- If you can, please link the line(s) you think are responsible for the bug. --->
|
|
||||||
|
|
||||||
|
|
||||||
/label ~bug
|
|
|
@ -1,21 +0,0 @@
|
||||||
<!--- Before submitting a request, check if it hasn't already been submitted by someone else. --->
|
|
||||||
|
|
||||||
### The idea
|
|
||||||
|
|
||||||
<!--- Describe your idea. Does it fix a certain issue? Does it add new functionality? --->
|
|
||||||
|
|
||||||
### Intended users
|
|
||||||
|
|
||||||
<!--- Who will be using this new feature? --->
|
|
||||||
|
|
||||||
### Proposal
|
|
||||||
|
|
||||||
<!--- How do you want to fix this issue? You can give some code snippets, or describe a solution. --->
|
|
||||||
|
|
||||||
### Further details
|
|
||||||
|
|
||||||
<!--- Here, you can add example use cases, a list of benefits, or any other details that will help us tackle the
|
|
||||||
issue. --->
|
|
||||||
|
|
||||||
|
|
||||||
/label ~feature
|
|
2
Makefile
2
Makefile
|
@ -65,7 +65,7 @@ package: README.md LICENSE setup.py test clean-setup
|
||||||
@ "$(VENV)/bin/python" setup.py sdist bdist_wheel
|
@ "$(VENV)/bin/python" setup.py sdist bdist_wheel
|
||||||
|
|
||||||
publish: package
|
publish: package
|
||||||
@ [ "$$(git symbolic-ref HEAD --short)" = master ] && { \
|
@ [ git symbolic-ref HEAD --short = master ] && { \
|
||||||
echo 'Publishing to PyPi...'; \
|
echo 'Publishing to PyPi...'; \
|
||||||
$(VENV)/bin/python -m twine upload dist/* ; \
|
$(VENV)/bin/python -m twine upload dist/* ; \
|
||||||
} || { \
|
} || { \
|
||||||
|
|
14
README.md
14
README.md
|
@ -75,17 +75,3 @@ 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.
|
- `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
|
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.
|
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.
|
|
||||||
|
|
2
setup.py
2
setup.py
|
@ -7,7 +7,7 @@ with open('requirements.txt', 'r') as reqs_file:
|
||||||
reqs = [line.strip() for line in reqs_file.readlines()]
|
reqs = [line.strip() for line in reqs_file.readlines()]
|
||||||
|
|
||||||
setuptools.setup(
|
setuptools.setup(
|
||||||
name='frank-discord',
|
name='frank',
|
||||||
version='0.1.0',
|
version='0.1.0',
|
||||||
author='Jef Roosens',
|
author='Jef Roosens',
|
||||||
author_email='',
|
author_email='',
|
||||||
|
|
Reference in New Issue