Piggy_G is an auto mod bot used in Discord. It can do quite a few things, while some small, other's most may find a huge aid in moderating a Discord server.
Piggy_G is not exactly intended for inviting it like a normal Discord bot; it is designed for you to clone the bot's repository and run it off of your personal computer.
Follow these steps to install Piggy_G onto your computer and make your clone online. It will be a lot of steps, but it will be worth it if done correctly.
- Create a GitHub account (if you don't have one already)
- Download GitHub desktop with this link: https://desktop.github.com/download/
- Download VS Code with this link: https://code.visualstudio.com/download
- Once GitHub desktop is successfully installed, go back to the bot's repository, click on "Code" (it will be a green button) and then click "Open with GitHub Desktop". You should see a prompt open up asking you to clone it.
- Click the blue button labeled "Clone". The bot's code should now be installing.
- Once it is done cloning, click Repository (located at the top of the window), and click "Open in Visual Studio Code". VS Code should now be opening with the bot's code.
- Once VS Code is opened, you will need to install the Java Extension. On the left, click the "Extensions" button and search "Java". Select the one titled "Extension Pack for Java".
- Once the extension pack is finished installing, go back to your browser and open Discord Developer Portal.
- Create a new application and call it "Piggy_G" or whatever you wish (it doesn't matter, as long as you can tell it's Piggy_G, you should be okay).
- On the app's page, go to "bot", and then click "Reset Token". Enter your password when prompted and then copy the new token. It is very important that you do not lose this, or you will have to reset it again!
- Go back to VS Code (sorry for the bouncing back and forth lol), and then make a new file called exactly
.env
. Make sure the file is located in the parent directory (aka, the file's pathway should look likePiggy_G/.env
. - Inside of the
.env
file, type out exactlyTOKEN=
and at the end paste your clone's token. It should look likeTOKEN=[your bot's token here]
. - Run the bot by opening the
Main.java
file, which is loctated insrc/main/java/net/korithekoder/piggyg/Main.java
. The run button is loctated near the top right, and it will look like a play button.
- To add the bot to a server you need to enable certain permissions for the invite link. It is very simple (compared to the last steps you had to do lmao).
To do so, go to the bot's page and click
OAuth2
. For the first section, selectbot
andapplication.commands
. For the next section, just selectAdministrator
. Copy the link that is generated at the bottom and then paste it into your search bar or send the link on your server. - Click the link, authorize the bot and you're done! It will take about 30 seconds for the bot to upload it's commands.
Enjoy!,
Kori <3