A Bot that posts kills and battles to Discord
-
You will need git and node.js
-
Create a bot from discord dev panel and add bot to your discord with permissions to post/read/embed in the channel you want
-
git clonethis repository -
npm installto install node dependencies -
Add bot secret token to the auth.json
-
Open auth.json and add your bot token
-
Open config.json and add your alliancetag, and channelID, alliancekey
-
npm start
- Install Node.js
- Download AlbionKillBot from the github releases and extract the .zip
- Go to DiscordAPI
- Create New App
- Name it, add image(Optional) Click Create App
- Create a bot user
- Click
Show TokenCopy the Token to a text file. - Copy
Client Secretto a text file. - Add
ClientIDto this link, and visit it. https://discordapp.com/oauth2/authorize?client_id=ClientID&scope=bot&permissions=84992 -Ex. https://discordapp.com/oauth2/authorize?client_id=9876543210&scope=bot&permissions=84992 - Open auth.json and add your Token. Ex. "token": "MzUxNzgeedaMzQ0.KGbeA.mIrFhCUHgwaXLU__lxc"
- In discord, enable developer mode. In discord settings, under Appearance/Advanced
- Rightclick on the channel you want the bot to post too. Then click
Copy Id. - Open config.json and paste
Channel IDinto channel. Ex. "Channel": "0987654321" - Add
Alliance IDto the config.json Ex. "AllianceTAG": "COPS" - Go to the Albion Killboard and search for your guild. Copy the numbers at th end of the url.
- Go to https://gameinfo.albiononline.com/api/gameinfo/guilds/<!GuildID> Replace <!GuildID> with what you copied in previous step.
- Copy the numbers after "AllianceId": and paste them into the
AllianceKeyfield in config.json - Open command window inside folder with AKBot.js
- npm install albion-api
- npm install request
- npm install discord.io
- npm install winston
To Run type: node AKBot.js
Optional to make things auto run and autorestart
- npm install pm2@latest -g
- npm install pm2-windows-startup -g
- pm2-startup install
- pm2 start AKBot.js
- pm2 save
- Commands to change setting within discord (Ex. Set alliance Tag)
- Commands for maintinance
- A way to set permissions for who can use commands
- Commands to show player/guild stats
- Discord.io
- psykzz Albion-API
- Install help, requests, ext.



