hertz

command module
v0.0.0-...-678c0df Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 13, 2018 License: MIT Imports: 10 Imported by: 0

README

Installation

The bot is really simple to install, just follow this steps.

  • Download the executable corresponding to your system in the release section
  • Configurate your bot, create a config.json file in the same folder as the bot, it must have the following structure :
{
	"token" : "USER_TOKEN", 
	"prefix" : "PREFIX_CHAR",
	"youtube_token" : "YOUTUBE_API_KEY",
	"souncloud_token" : "SOUNDCLOUD_API_KEY"
}

token : The token is a unique key that allow you to connect your bot account to the Discord servers. To get one you must go to the discord developper site and register a new application.

Create Application On this screen, click on "New Application"

Create Application Next Enter a name and a description, and even an avatar if you want, then click on "Create Application"

Make a Bot Account This should apear on your screen. At this point, you just have to click on the "Create a Bot User" button and confirm the action

Get to the token Finally you should have this screen. The last thing you must do is copy and paste the Token value in the config.json file, in the field token.

prefix : This is the character that will come in front of the command words. It is used to recognize commands among all the messages. (Exemple : if prefix is ! you'll have to write !play to use the play command)

youtube_token : This is a Youtube Data API (v3) key. You can get one on the Google Cloud Console. It is used to get the informations of youtube playlists in order to play them.

souncloud_token : This is a Soundcloud API key. You can get one on the developers section of Soundcloud. It is used to get the informations of soundcloud tracks in order to play them.

  • Launch the executable, and that's it, up and running

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL