Skip to content
demidkoPublic

About

Virtual glock to shoot each other in chat during discussions

Topics

Resources

Stars

3 stars

Watchers

1 watching

Forks

Repository files navigation

Glock

Virtual glock to shoot each other in chat during discussions.

Usage

Just add @glockkobot to your chat and use the /shoot command to shoot your buddies. See also /help.

Messages sent on behalf of channels can also be hit by /shoot, /buckshot, and /statuette, and healed with /heal. The bot needs administrator rights to restrict members. Anonymous group administrators cannot be targeted.

Successful hits leave a short, silent log in the chat: 💥 @shooter → @target · +5:00. The duration is the added mute time in minutes and seconds. User labels link to their Telegram IDs; public channel labels link to their usernames. Channels without a username are shown by title and ID. Statuette hits name the person who placed the statuette. Ban logs remain in the chat history.

Telegram has no timed ban for channel senders, so the bot saves ban deadlines with telegram-storage and removes the bans when they expire. Repeated hits extend the remaining time. Set STORAGE_CHANNEL_ID to the numeric ID of a dedicated private channel and give the bot full administrator rights there. Keep its description and stored files unchanged. The bot uses com.github.demidko:telegram-storage:2025.03.20; no persistent disk is needed. This version publishes its index in close(), called by the library's shutdown hook on a normal shutdown. Allow the bot to shut down gracefully during deployments; a forced stop can lose changes since the last published index. If the bot is offline when a channel's ban expires, it removes the ban after starting again. Telegram's channel ban prevents the channel owner from writing on behalf of any of their channels in that chat. See the Telegram Bot API.

The Telegram client is telegram:10.0.0. Since telegram-storage:2025.03.20 was compiled against API 6, Gradle recompiles its unchanged published sources from JitPack against API 10 as part of the application. The incompatible storage binary is excluded from the runtime distribution. Its data format stays unchanged.

About

Virtual glock to shoot each other in chat during discussions

Topics

Resources

Stars

3 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages