b5bef60
Added theTELEGRAM_WEBHOOK_ROUTE
key to the.env.example
file. This value will define the route used for the webhook. Read the example envfile file for details. After changing it, it is recommended to regenerate the webhook (php artisan telegram:webhook --setup --all
).b5bef60
TheTELEGRAM_WEBHOOK_URL
key on the.env
file should reflect the route used by theTELEGRAM_WEBHOOK_ROUTE
env value.b5bef60
Deleted theBOFHERS_TELEGRAM_WEBHOOK_KEY
key.TELEGRAM_WEBHOOK_ROUTE
is the substitute for webhook obfuscation.
Update instructions:
- Replace all the
TELEGRAM_*
variables in the.env
file with those from the.env.example
file. - Fill them accordingly to whatever the needs are.
- Regenerate the webhook endpoint:
php artisan telegram:webhook --setup --all
. - Register the bot's commands:
php artisan telegram:registerBotCommands
.
d6f272e
Adapted all the!commands
so that they use Telegram's command's API which uses/
instead of!
(fixes #32). Added deprecation notices to old!commands
.b5bef60
Added the artisan commandtelegram:registerBotCommands
to integrate the bot into Telegram's commands API (see #32).b5bef60
Modified the docker testing environment and documentation to auto register webhook and bot commands (see #32).92c4e4a
/quote
now accepts an optional argument category which allows the bot to only show a given category's quotes (/quote mycategory
).92c4e4a
/addquote
now allows to add a category to the new quote. The format/addquote <text> %% <category>
should be used when trying to categorize a new quote. (fixes #10 via categorizing quotes withrandom_insult
, also see #5 as you could categorize quotes withcongrats
).a742350
New command/categorias
. As of now it only works for categories of quotes.
b5bef60
Removed the/set-webhook
and/del-webhook
routes. Added the artisan commandtelegram:webhook
to manage the webhook (fixes #13).b5bef60
Removed the/random
route.b5bef60
Refactored a few instances of code so that the Telegram service is instantiated via dependency injection instead of using it manually (this is required so that it reads the full configuration on theconfig/telegram.php
file).b5bef60
Tweaked a few values on theconfig/telegram.php
file to enable commands and proper webhook registration.de10710
As of now, composer v2 is not playing nicely with backpack. Rolling back to v1.2ee0614
Preventing an error on the webhook's handling method from causing the bot to become unresponsive.
21ba7b9
Adds a version command to the bot
bb206fc
Merge pull request #26 from hluaces/fix-issue-2441a8fc2
fix: !addquote wont accept 0 and some other garbagefa16b54
Send hourly quotes only to BOFHers, people in other channels is complaining. Fixes #234881e3d
Merge branch 'master' of https://github.com/oscarmlage/bofherse6a6abc
Added a mark in backend to see the already used quotes41ad58f
Fixes #227b32a14
Migrations change1131a06
Feature, now Tifu replies to the mesage and adds a photo in the message2b7b016
Merge pull request #21 from pniaps/masterc4d07b2
Merge branch 'master' into master97061ce
Added a minor commentc77194e
Feature, a kind of "ruskifilter" :). Fixes #6. Idea and code: @wakkahe25e6b3
Random debug53e29bb
Feature, quote rotation. Fixes #17 (code by @wakkah)dab8f6d
Adds scheduled quotes to TifuBot (fixes #11, fixes #3)353774d
Removes debug log files (fixes #18)a4b2214
Fixes relation between quotes and categoriesb3649e4
Rima de covid sólo cuando el mensaje termina en covid, no distingue mayúsculasee94feb
Changed order quotes50dcf5b
Added ability to change quote status selected quotes in a bunchfa63503
Added repo command to @TifuBot4c89309
Adds covid feature (fixes #15)4054f83
Fixes #14a4d9e04
Added a kind of protection with TELEGRAM_WEBHOOK_KEY in the environment for the public urls (til they're not converted to cli commands)3ad11d6
Working on tifu commandsca0fed4
Added quotes + categories for jobs and quotes + some other minor crud improvements.ef1456d
Updated composer vulnerabilitiesb5fcd54
Remove bot token from VerifyCsrfTokeneb69308
Working on tifu commands + Suggestions in TODO5c0c5c8
New db migration + working on tifu commandsbdab86a
Working in tifu commands443a69f
Minor improvements in Cruds7457992
Deleted leftover in migrations10f467f
Added Telegram Channels support954b273
Improving Telegram capturer856fcb7
Rollback5d43948
Remove bot key from VerifyCsrfTokeneeba501
Change TifuBot commandsef8ad98
Mixed commit with multiple stuff794bd6b
Update TODO cosmeticsf1e1191
Add BOFHers as User extension + UsersCategories1ff8546
Add categories47d7d28
Update goals8e20414
Update gitignore862bd5f
Fix gitignorec2fc973
Add software + jobs feature9499586
Add vanilla Laravel262ddc6
Initial commit