In a command prompt in your projects folder (wherever that may be), run the following:
git clone https://github.com/ajmeese7/text-to-emoji
Once finished:
- Ensure you have NodeJS installed on your PC by running
npm
. If not, Google how to install it and do that now - In the folder from where you ran the git command, run
cd text-to-emoji
and then runnpm install
- Edit
config.json
and enter your token and desired prefix. It should look like this afterwards:
{
"bot_token": "YOUR_TOKEN_HERE",
"prefix": "YOUR_DESIRED_PREFIX_HERE"
}
Your prefix can be anything you want, but I tend to use the /
because you're unlikely to ever use it on accident.
Go to this link and follow the instructions to get your login token.
KEEP YOUR TOKEN SECRET, AND NEVER SHARE IT WITH ANYONE
To start the bot, open a command prompt from the folder containing the repository and run
node index
.
You simply need to type /emoji
in Discord followed by your message, then the bot will
handle the rest.
To stop it, click on the terminal and press CTRL+C, which will kill the process.