-
Kiryuu Sakuya authored
- Rewrite bot by using tgbotapi/v5 - Drop hololive function for this release because still need to test - Use a new method to use the bot token.
Kiryuu Sakuya authored- Rewrite bot by using tgbotapi/v5 - Drop hololive function for this release because still need to test - Use a new method to use the bot token.
A simple bot using webhook.
Example usage: @ikazuchi_bot
Special thanks to @enihsyou.
What can it do
Command | Description |
---|---|
/choice | What do you want? |
/hitokoto | Say something. |
/uselessweb | Explore the internet? |
/crxdownload | Download crx files. |
/yandere | Random picture from yande.re. |
/hololiveupcoming | Show Hololive upcoming stream schedule |
/choice
Usage: /choice <item1>
<item2>
[item3]
...
Support quotes. Example: /choice "Haachama cooking" Beer Rice
.
/hitokoto
Usage: /hitokoto
Only choose from anime series.
/uselessweb
Usage: /uselessweb
/crxdownload
Usage: /crxdownload <Chrome Webstore URL or extension ID>
Example: /crxdownload https://chrome.google.com/webstore/detail/new-tab-redirect/ichehieikadgglcchlpicbdhfkbklimg
or /crxdownload ichehieikadgglcchlpicbdhfkbklimg
. When submit an URL, Both HTTP & HTTPS are ok.
/yandere
Usage: /yandere
Post a random picture from yande.re.
/hololiveupcoming
Usage: /hololiveupcoming
Show Hololive upcoming stream schedule.
/cangkua
Usage: /cangkua
Pick a random article from cangku.
/rbq
Usage: /rbq
This is a improved v1 function.
Deploy
This bot can be deployed on Vercel. Please set these variables:
- TGBot_ADMIN: Admin UID.
- CANGKUACC_USERNAME : For cangku random article usage.
- CANGKUACC_PASSWORD : For cangku random article usage.
Also, please set the webhook url of the bot by requesting bot api like this:
https://api.telegram.org/bot<YOUR_BOT_TOKEN>/setWebhook?url=https://<YOUR_DEPLOYMENT_URL>/<YOUR_BOT_TOKEN>
License
WTFPL