awesomebot

command module
v0.0.0-...-dc8ce41 Latest Latest
Warning

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

Go to latest
Published: Jun 13, 2019 License: AGPL-3.0 Imports: 17 Imported by: 0

README

AwesomeBot

A telegram bot written in go, based on telebot

Development chat

Running

  • Put your build configuration in config (Telegram bot token, Sentry DSN)
  • Run ./build.sh
  • The binary will be in out/awesomeBot, You should not publish this binary anywhere, it contains your secret token!

Configuration

AwesomeBot stores configuration files in a folder named "AwesomeBot" in your OSes appropriate directory:

  • macOS: ~/Library/AwesomeBot
  • Linux: ~/.config/AwesomeBot
  • Windows: Should be in your user's directory (C:\Users\yourname\AwesomeBot)

The files:

Database/User - A user database used to look up user IDs from usernames (for /ban @username) - it collects user info from every message it sees (you shouldn't edit it)

helpmsg - The help message sent by /help

Commands

/ban - Ban a user

/kick - Kick a user

/purge - Delete a range of messages

/delete - Delete a message

/song - Download a song from YouTube as an AAC file

/mid - Get a message's ID

/cid - Get a chat's ID

/id - Get a user's ID

/help - Send the help message (only works in PM)

PRs are welcome!

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