Skip to content

agam778/CannyBot

Repository files navigation

CannyBot

CannyBot is an Open Source Telegram bot written in grammY. It's just a fun bot with some cool features. IT IS NOT a moderation bot.

Commands

Utilities:

  • /aur, /pacman - Get info about an AUR/pacman package
  • /help - Show a list of commands
  • /magisk - Get the latest Magisk releases
  • /npm, /yarn - Get info about a npm/yarn package
  • /pip - Get info about a pip package
  • /search - Search for a query in multiple search engines
  • /webshot - Take a screenshot of a website

Git Utilities:

  • /ghrepo - Get info about a GitHub repository
  • /ghuser - Get info about a GitHub user

Fun:

  • /meme - Sends a random meme from Reddit

More commands will be added soon!

Add it to your group

To add this bot in your group, invite "@thecannybot" to your group

Other Information

About the envrionment variables:

The environment variables are present in sample.env, rename it to .env and fill in the values if you're self hosting it.

  • BOT_TOKEN: The token of your bot, get it from @BotFather
  • LOG_CHANNEL: The ID of the channel/group where the logs will be sent if an error occurs when a command is executed
  • LOG_COMMANDS: Set it to true if you want to log every command that is executed
  • SITE_SHOT_API_KEY: Needed by the webshot command, get it from here

Self host:

Install Dependencies: Run yarn; yarn install
Run the Bot: Run yarn start

License

CannyBot is licensed under the GPL 3.0 license. See the LICENSE file for more information. If you are using the customized version of this bot/using any command in the bot for your own purposes, I would be grateful to have credits in any form.

Releases

No releases published

Packages

No packages published