Code Monkey home page Code Monkey logo

dirkbot's Introduction

DirkBot

Source of Dirk Bot

Setting up the config file

If you want to make this bot to work, you have to create a new file: /configfiles/config.json. This file should contain the following information:

{
	"version": "0.6.2",
	"botToken": "",
	"ids": {
		"botId": "189393959577976833",
		"AxSServer": "121334952016084992",
		"masterUser": "88662320791707648"
	},
	"apiKeys": {
		"youtube": "",
		"osu": ""
	},
	"masterCommandPrefix": "!",
	"MySQL": {
		"host": "",
		"port": "3306",
		"user": "",
		"password": "",
		"database": "dirkbot"
	}
}

What do the variables mean

botToken: The token of your bot, get a code from here: https://discordapp.com/developers/applications/me

ids.botId: The id of the bot user (right mouse on the bot -> Copy ID)

ids.AxSServer: The official AxS server id is 121334952016084992, feel free to change this to any of your own servers if you want to run the commands in there

ids.masterUser: The id of the master user (usually yourself), this is used to bypass certain things

apiKeys.youtube: The api key for youtube, get a key from here: https://console.developers.google.com/

apiKeys.osu: The api key for osu!, get a key from here: https://osu.ppy.sh/p/api

masterCommandPrefix: By default !, change it to anything

MySQL.host: The IP of the MySQL server

MySQL.port: The port of the MySQL server

MySQL.user: The username of the MySQL server

MySQL.password: The password of the MySQL server

MySQL.database: By default dirkbot, the database name

MySQL database

The database file is located in /configfiles/dirk_database.sql. To import this database, simply use the following command: mysql -u username -p database < dirk_database.sql.

dirkbot's People

Contributors

wesley-221 avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.