A Discord Bot that connects to your AzerothCore server so you / users can manage the server / character

Overview

Bot startup

Info: This bot uses Discord ID and stores it into the SQL database acore_auth => account => reg_mail

This way it verifies if the user is trying to use his own account created using the bot

Requirements:

- NodeJS (Tested with v16.6.2)
- Modules (Use installation to install them)
- Discord Account with a bot account for bot token

Installation:

- Run "npm install", this will install all dependencies
- Rename "config_template.js" to "config.js" and insert all your information: token, usernames, passwords, ...
- Make sure your AzerothCore server has enabled SOAP.

Startup:

- Use a terminal
- Command: npm start

Extra information:

- Special thanks to Village#9461 (no github) for funding the project.
You might also like...

This is a Blockchain contract app built with solidity, ethersjs, nodejs, and the hardhart library. Connects to metamask as well.

This is a Blockchain contract app built with solidity, ethersjs, nodejs, and the hardhart library. Connects to metamask as well.

Dribble - Hardtjs, Etherjs, Metamask Project About Dribble is my first blockchain, web 3.0 application that you could use to deposit ethereum into a w

Jun 17, 2022

This is a Blockchain contract app built with solidity, ethersjs, nodejs, and the hardhart library. Connects to metamask as well.

This is a Blockchain contract app built with solidity, ethersjs, nodejs, and the hardhart library. Connects to metamask as well.

Dribble - Hardtjs, Etherjs, Metamask Project About Dribble is my first blockchain, web 3.0 application that you could use to deposit ethereum into a w

May 9, 2022

[GSoC Project] Rocket.Chat App that connects with Figma

Getting Started Now that you have generated a blank default Rocket.Chat App, what are you supposed to do next? Start developing! Open up your favorite

Dec 12, 2022

Domvas implements the missing piece that connects the DOM and Canvas.

Domvas Overview Domvas implements the missing piece that connects the DOM and Canvas. It gives to the ability to take arbitrary DOM content and paint

Dec 29, 2022

A mesh network that connects remote communities to emergency responders without relying on internet, cell towers, or satellites

A mesh network that connects remote communities to emergency responders without relying on internet, cell towers, or satellites

A mesh network that connects remote communities to emergency responders without relying on internet, cell towers, or satellites. Winner of Hack the North 2022. 🏆

Sep 23, 2022

Help Ukraine - add ribbon with Ukraine flag into the website you manage, show the anti-war message to Russian users, or block them from your service.

Help Ukraine - add ribbon with Ukraine flag into the website you manage, show the anti-war message to Russian users, or block them from your service.

🟦 Stop war on Ukraine 🟨 Help Ukraine - add ribbon with Ukraine flag into the website you manage, show the anti-war message to Russian users, or bloc

Jan 7, 2023

Project to manage multiple emails at once with lots of customization. You can send and receive emails. Desktop notifications can be modified.

Project to manage multiple emails at once with lots of customization. You can send and receive emails. Desktop notifications can be modified.

Technologies Used React Redux Tailwind CSS Features Admin dashboard User settings and or user dashboard send emails recive emails Connections through

Dec 17, 2022

App to manage maintenance calls. App to manage maintenance calls. This application was created for the purpose of studies.

App to manage maintenance calls. App to manage maintenance calls. This application was created for the purpose of studies.

App to manage maintenance calls. App to manage maintenance calls. This application was created for the purpose of studies.

Dec 26, 2022
Comments
  • Discord Bot loses connection to server after a period of time and has to be restarted

    Discord Bot loses connection to server after a period of time and has to be restarted

    I'm uncertain if this is an issue with the bot itself or my setup.
    After the bot has been started, all the commands are fully functional. However, after a period of inactivity (seems to be a few hours), the bot seems to lose connection to the server. The loss of connection is not noticed until another command is sent to the bot, at which time the bot will respond with the following error: There was an error trying to execute that command!

    This is the output printed to the console:

    Error: Can't add new command when connection is in closed state
        at Connection._addCommandClosedState (/opt/warcraft/AzerothCoreDiscordBot/node_modules/mysql2/lib/connection.js:148:17)
        at Connection.query (/opt/warcraft/AzerothCoreDiscordBot/node_modules/mysql2/lib/connection.js:546:17)
        at Object.execute (/opt/warcraft/AzerothCoreDiscordBot/commands/online.js:14:16)
        at Client.<anonymous> (/opt/warcraft/AzerothCoreDiscordBot/server.js:72:65)
        at Client.emit (node:events:527:28)
        at MessageCreateAction.handle (/opt/warcraft/AzerothCoreDiscordBot/node_modules/discord.js/src/client/actions/MessageCreate.js:31:14)
        at Object.module.exports [as MESSAGE_CREATE] (/opt/warcraft/AzerothCoreDiscordBot/node_modules/discord.js/src/client/websocket/handlers/MESSAGE_CREATE.js:4:32)
        at WebSocketManager.handlePacket (/opt/warcraft/AzerothCoreDiscordBot/node_modules/discord.js/src/client/websocket/WebSocketManager.js:384:31) 
        at WebSocketShard.onPacket (/opt/warcraft/AzerothCoreDiscordBot/node_modules/discord.js/src/client/websocket/WebSocketShard.js:444:22)
        at WebSocketShard.onMessage (/opt/warcraft/AzerothCoreDiscordBot/node_modules/discord.js/src/client/websocket/WebSocketShard.js:301:10) {      
      fatal: true
    }
    

    The azerothcore server itself is a docker installation. My config.js is as follows:

    module.exports = {
    
            token: "<redacted>",
            prefix: "!",
            statusMessage: "with my 25 characters!",
            color: "#0000FF",
    
            databaseHost: '127.0.0.1',
            databaseUser     : '<redacted>',
            databasePassword : '<redacted>',
    
            soapPort: 7878,
            soapHostname: "127.0.0.1",
            soapAuth: "<redacted>"
    
    }
    

    One other note is that the soapAuth user is the GM account I use when I need to perform GM functions. Would logging into that account cause the bot to disconnect, and is it recommended for the bot to have a dedicated GM account through which to authenticate with the server?

    opened by entropiccode 5
Owner
Xander
Xander
fardin 8 Oct 18, 2022
This app helps manage a bookstore. It comes in handy when you need to manage a personal book store or library. Entirely built on es6.

Awesome Books A Microverse project on learnong javascript. Additional description about the project and its features. Built With HTML5 CSS3 Javascript

Atugonza ( Billions ) Joel 13 Apr 22, 2022
Lets you add a character to Hacker News links to add social media and OpenGraph previews for sharing on things like Slack or Twitter.

news.ycombinator1.com Lets you add a character to Hacker News links to add social media and OpenGraph previews for sharing on things like Slack or Dis

Ian Langworth ☠ 38 Sep 18, 2022
A simple and useful jquery plugin that allows you to create a Text Area Character Count Effect with limited warning.

jquery-character-counter A simple and useful jquery plugin that allows you to create a Text Area Character Count Effect with limited warning. #Demo Us

Abdoulie Kassama 0 Dec 28, 2020
This project is a To-do list app which users can store and edit their Todo Tasks. Users can also change the order of their todo

Project This project is about a todo app bundling using webpack Additional description about the project and its features. Built With HTML CSS Javascr

Richmond Adu-Kyere 2 Jun 17, 2022
A single-page application that allows users to keep track of their books. Users can add the book details (book title and author) and also, and the books can also be removed. Built with JavaScript, HTML, and CSS

Project Name Awesome book with ES6 Description the project. This is a single page application that allows users to keep track of their books. Users ca

Micheal Oguntayo 4 Oct 13, 2022