DEV Community

Cx
Cx

Posted on

Discord Account Generator

Before Begin

It is a bot I wrote for Discord. You can review the details of what you can do with this bot below.

Contents

Installation

To download all files to your workspace;

git clone https://github.com/v-Cx/Discord-Account-Generator.git
Enter fullscreen mode Exit fullscreen mode

ForTheBadge uses-js

Usage

Main Points You Should Arrange

{
    "token" : "SERVER TOKEN",
    "prefix" : "Prefix that you want to use",
    "bId" : SERVER ID,
    "accountChannel" : ACCOUNT CHANNEL ID,
    "insChannel" : INSTAGRAM CHANNEL ID,
}
Enter fullscreen mode Exit fullscreen mode

token

Paste the token you received from the Discord developer portal for your server here.

Discord Developer Portal
To Get Token;

1- Select Your Application

2- Click Bot on the left sidebar menu

3- Click the "Click to Reveal Token" link next to the Icon option.

prefix

Define your custom prefix.

bId

Paste your server id here.
If you don't know how to make your server ID
-Open Settings in Discord -> Click Apparence -> Enable Developer Mode.
Right click your own server on the servers listed on the left and click "copy ID".

accountChannel

In which channel can users generate accounts using commands?
Detailed explanation: Create a channel. Example (#generate_channel) Users can now generate accounts using the #generate_channel channel.

Developer mode must be turned on.

Right click the channel you created and click "copy ID"..

insChannel

Enter the id of the channel that users query users for Instagram.
Developer mode must be turned on.

Right click the channel you created and click "copy ID"..

.env

MYSQL_HOST=/* MYSQL HOST */
MYSQL_USER=/* MYSQL USER */
MYSQL_SECRET=/* MYSQL PASS */
MYSQL_DB=/* MYSQL DATABASE */
Enter fullscreen mode Exit fullscreen mode

MYSQL_HOST

The host where your SQL table is located (default: localhost)

MYSQL_USER

MySQL Username

MYSQL_SECRET

MySQL Password

MYSQL_DB

MySQL database name

Spotify.js

This file contains functions that will respond to the! Spotify command written by the user according to the prefix (example (!)) You specify on your discord server.

If you wish, you can duplicate this file as many as the number of platforms you will give your users. Or you can write a function instead and rearrange it according to the command that the user has written.

Screenshots from within the Discord bot

alt text

Website sellthing.co

Discord

Top comments (11)

Collapse
 
nooby profile image
WinningGlory

how install pls help

Collapse
 
cx profile image
Cx • Edited

Hello there. You can install the bot on a server. Any server on which you can actively run nodejs.

Collapse
 
nooby profile image
WinningGlory

how to run nodejs

Thread Thread
 
Sloan, the sloth mascot
Comment deleted
 
cx profile image
Cx

npm start run :)

Thread Thread
 
Sloan, the sloth mascot
Comment deleted
 
nooby profile image
WinningGlory • Edited

idk what that means
Can you help me on discord?
My discord is 3p1c#0386

Thread Thread
 
polargt profile image
polar

run start run

Collapse
 
foytheoafish profile image
FoxyTheOafish

how i install, im dumb

Collapse
 
cx profile image
Cx • Edited

Hello there. You can install the bot on a server. Any server on which you can actively run nodejs.

Collapse
 
hggfuyfuvtyfyhgvgjhhghghjggh profile image
Christian

ok so i did the things but how do i like add the code to the bot and how do i put the bot on server