[Addon] DonateCraft - Discord Bot Integration
Generation 3An Addon for DC that allows creation of Redeem codes remotely from your discord.
ADDON
This is an addon for my plugin DonateCraft .
If you do not have that plugin on your server this won't work .
Don't let that confuse you, this is simply an independent plugin that runs a bot.
Setup & Installation:
1. Make sure you setup the socket server on the server with DonateCraft and make sure the socket server is operating properly.
2. Place this plugin on any server, let's name that server, Bot .
3. Stop the Bot server.
4. Create a bot application here .
5. Make sure your bot is a bot by going to the Bot section in your Application and turning it on.
6. Copy the Token of your bot and place it in the bot_token part of DonateCraftBot's config.yml & save the config.yml
7. On your Discord Server create a new Role called " Store Manager " as the config.yml 's role_name described and assign the person (like you ) that role.
8. Create a private channel to manage DonateCraft and never delete that channel.
9. So you got your Bot Token up, your roles up, your application in your server, all you gotta do now is restart the server with the bot .
10. Invite your bot to the server with this link :
https://discordapp.com/oauth2/authorize?client_id=%3CBot_Client_ID%3E&scope=bot&permissions=0
Replace the field <Bot_Client_ID> with your discord bot Client ID which is located in the General Information Tab .
So it would look like something like this:
https://discordapp.com/oauth2/authorize?client_id=%3CBot_Client_ID%3E&scope=bot&permissions=0
11. Server restarted? Bot invited? Now do this to setup the servers:
Setting up the data
You got everything up, now you gotta setup the data.
Let us say I have a server called " Survival " with the ip of 155.14.233.13:25565
you can ignore the :25565 as we will be using only the port.
In that server, I have DonateCraft running and the socket server is running . Just for an example, my socket server is running at:
155.14.233.13:8192
but if my socket server's ip is 0.0.0.0 then I would use the numeric ip which is 155.14.233.13.
What I wanna do now is to use the command:
-dc setup <Name> <IP> <socket Port>
it will ask me the name of my server, I can name it whatever I want:
Let's do:
-dc setup survival [B]155.14.233.13 8192[/B]
It will prompt me to get the public.key . To get them I'll go to my DonateCraft's plugin folder and go to the RSA folder.
which is in DonateCraft/rsa/public.key
Open it and paste that in the discord.
Now if it is working, test it with
-dc createcode <Name> <Amount> (Code)
As you can see, the code is optional , leave it blank to randomize the code.
I would do
-dc createcode Survival 5000
And that would create me a random redeem code that worths 5000 coins .
If you have any questions feel free to ask me on discord:
https://discord.gg/QtKCW34
Similar projects
Plugin →Let Me Despawn
Improves performance by tweaking mob despawn rules. Say bye to pesky unintentional persistent mobs.
25MSueta
JourneyMap
Real-time map used for mapping in-game or your browser as you explore.
14.7MSueta
Emotecraft
Create your own emotes in Minecraft.
7.5MSueta
Simple Tpa
A simple tpa plugin which sends requests
5.4MSueta
Common Network
Forge and Fabric Unified Networking Solution
3.9MSueta
Set Home
A lightweight plugin for players to set their homes.
3.8MSueta