-
Go to the repository coderdojobraga/gongo.
-
In the top-right corner of the page, click Fork.
-
Go to your fork of the repository
-
Under the repository name, click Code.
-
Copy the URL.
-
Open a Terminal.
-
Navigate to the location where you want the cloned directory.
-
Run the command
git clone
with the URL you copied earlier. It will look like this:git clone https://github.com/<your-github-username>/gongo.git
Now, you have a local copy of your fork of the gongo
repository.
-
We recommend using
asdf
as the version managerYou can read the installation guide here.
And then install the asdf-python plugin.
asdf plugin-add python
Note: You should set
legacy_version_file
to yes on theasdf
config file (read more here)
On the project directory, run:
bin/setup
-
Go to the discord developer portal.
-
In the top-right corner of the page, click New Application.
-
Type the name for your bot, and click Create.
-
In the left-hand panel click on Bot and then Add Bot.
-
Now on the right of the profile picture, click on the option Click to Reveal Token to view the token ID.
This file was created when you ran bin/setup
and is located on the project
directory.
-
Use this server template to clone the existing server.
-
Invite the bot using a link like this:
https://discord.com/api/oauth2/authorize?client_id=<id>&permissions=<permissions>&scope=bot
Where
<id>
is your bot's client id found in the discord developer portal and<permissions>
is the permissions integer that can be found on the bot's page, for now this value is set to338757952
with the following permissions:
On the project directory run the following command to create a new branch and switch to it:
git checkout -b <branch>
Where <branch>
is the name of the new branch.
-
After working on the branch, commit your changes:
git commit -m "Commit message"
Recommendation: How to write a git commit message
-
Push the changes to your git repository:
git push -u <remote> <branch>
Here
<remote>
is the current branch’s remote (typically origin).