Skip to content

DucNgn/Aww

Repository files navigation

Aww

Description:

The repo is the source code of the Discord bot Aww for cat and dog lovers. The bot gives users random facts about either cats and dogs per requested. In addition, you can ask for random cute pictures of them, so you will never be bored !!!

Demo:

Bot Syntax:

  • ! to display a list of available command.
  • !meow fact: display cat fact.
  • !meow img: dislay cat image.
  • !woof fact: display dog fact.
  • !woof img: display dog image.

Build your bot:

You need DiscordJS to run the program.

  • Install by npm install discordjs.

Create Discord bot:

  • Create an application from Discord developer portal.
  • Check bot option from scopes. That will create a new bot. Then add server permission for the bot:
    • Send Messages
    • Manage Messages
    • These are the needed permissions fot the bot to receive and return request from user.
  • After creating the bot. There will be a link appears at the bottom of scopes section. Copy and paste the link to your browser, Discord will let you to invite the bot into your server in that window.

Link the bot to our code base:

  • Clone the repo.
  • Copy the Token of the bot.
  • Edit the file config.json in this repo with the token you just received. Example in config.json:
{
"prefix": "!",
"token": "NzsndkfjnskdSkb90wMDE2NTExOTQyNjk3.XrlUsA.OOBfhc2Eqn3-0QEAkn_OANJpJGM"
}
  • In addition, you can change the prefix of the command as well. The default is !

Run the bot:

  • node index.js
  • If the output on screen is Ready!, then the bot is now ready to roll !!

Host Aww bot:

  • You can deploy to Heroku to host Aww-bot.

Dependency:

Acknowledgement:

The following APIs were used in the project to feed information to Aww-bot.

About

A Discord bot shows you facts and pictures of cute dogs (cats also included!)

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •