Ver 0.0.1 turbo alpha
- client_secret.json
- Credentials to your Oauth service. To be placed in the binary folder.
- gatnbot
- compiled binary
- settings.hcl
- rename settings.hcl.example to settings.hcl and place it in the binary folder.
- glados
- a folder full of GlaDoS voice lines (script to download them soon...)
- Get a Bot ID and token from @BotFather on Telegram and insert them into settings.hcl "bottoken"
-
timezone
- Set to a string with ISO timezone such as "Europe/Rome". Used for task scheduling.
-
apiurl
- Custom Telegram API URL, if empty defaults to 'https://api.telegram.org'
-
chatid
- An array containing list of chats to send emails to, and also chats where the bot will reply to commands. NOTE: Please only use one chat ID for now.
-
adminid
- An array contining chat IDs of admins. The bot will treat these as additional chats to handle messages in, but it will not forward emails.
-
linksmsg
- The message containing the response of the /links command in Markdown format.
This is still a huge WIP! Don't expect to kill dragons with this code, but issues and PRs are accepted.
As for now, here's what to check if you're curious:
settings
loads the HCL config file into memorycrontasks
handles the scheduled actions, including refreshing the Markov modelcommands
handles the /commands that the bot replies to.sendemail
(currently disabled!) handles checking for unread email, forwarding it, and marking it as readfakernews-mod
modified standalone version of fakernews generates fake Hacker News stories