A community project for Hacktoberfest 2018. A Discord bot primarily designed to help teach Python learners from the PythonDiscord community how to contribute to open source.
You can find our community by going to https://discord.gg/python
We know it can be difficult to get into the whole open source thing at first. To help out, we've decided to start a little community project during hacktober that you can all choose to contribute to if you're finding the event a little overwhelming, or if you're new to this whole thing and just want someone to hold your hand at first.
!repository - Links to this repository
!Git - Links to getting started with Git page !Git.commit - An example commit command
Random halloween facts are posted regularly.
!hallofact - Show the last posted Halloween fact
If you are new to this you will find it far easier using PyCharm:
First things first, what is PyCharm?
PyCharm is a Python IDE(integrated development environment) that is used to make python development quicker and easier overall.
So now your going to need to download it here.
Ok, now you have got PyCharm downloading you are going to want to fork this project and find its git URL. To fork scroll to the top of the page and press this button.

clone or download button and then the copy link button as seen below:
Now that you have done that you are going to want to load up Pycharm and you'll get something like this without the left sidebar:

Control->Git and you'll get a popup like the one below:

clone. You now have a copy of your repository to work with and it should setup your Pipenv automatically.
Now we have setup our repository we need somewhere to test out bot.
You'll need to make a new discord server:



Bot->Add Bot->Yes, do It! as below:


Bot checkbox in the scope section and finally hit the administrator checkbox in the newly formed Bot Permissions section.

Go back to PyCharm and you should have something a bit like below, Your going to want to hit the Add Configuration button in the top right.



HACKTOBERBOT_TOKEN and give the value the token we kept for safe keeping earilier.

As we work on our project we are going to want to make commits. Commits are effectively a list of changes you made to the pervious version. To make one first hit the green tick in the top right
- Select the files you wish to commit
- Write a brief description of what your commit is
- See the actual changes you commit does here (you can also turn some of them off or on if you wish)
- Hit commit

- Using the VSC Menu
VSC->Git->Push - Using the VSC popup
alt-`->Push - A shortcut:
ctrl+shift+K
You should get a menu like below:
- List of commits
- List of changed files
- Hit Push to send to fork!
Goto https://github.com/discord-python/hacktoberbot/pulls and the green New Pull Request button!

Compare across forks then on the third dropdown select your fork (it will be your username/hacktoberbot) then hit Create Pull request.
1
Now to tell other people what your PR does
- Title - be concise and informative
- Description - write what the PR changes as well as what issues it relates to
- Hit
Create pull request
At this point your PR will either be accepted or a maintainer might request some changes.
So you can read up some more on https://try.github.io, https://www.jetbrains.com/help/pycharm/quick-start-guide.html or you might want to learn more about Python and discord: [https://discordpy.readthedocs.io/en/rewrite/](discord.py rewrite)
The process above can be completed without PyCharm however it will be necessary to learn how to use Git, Pipenv and Environment variables.
You can find tutorials for the above below:
- Git: try.github
- Pipenv Pipenv.readthedocs
- Environment Variables: youtube


