A telegram bot that allows users to set specific banned words and count the instances of each group member saying any of the words. python-telegram-bot and Supabase used.
Add words that the users would like to count by running /addword
. Send the words with a space as a delimiter. /cancel
is used to cancel the interaction with the bot.
Messages are recorded and if the text matches any word in the list the bot will be triggered.
Running /score
allows users to check a tallied count for each member.
1. Create a bot with BotFather
key = "API KEY"
SUPABASE_URL = "SUPABASE_URL"
SUPABASE_KEY = "SUPABASE_KEY"
create view score as
select username, SUM(count) as total_count from records
group by username
order by total_count desc