A Bot, which observes your counting-abilities and controls your drinking-habits, too!

Overview

Discord Counting Bot with Beer-Counter

Heavily inspired by AlexVerricos Counting_bot, but adjusted a lot for the beer drinking habits of students.

Invite the Bot or Run it yourself. It is your choice

Trust me

Run the fully functioning bot

Invite this bot to your server

Or install and run it yourself

  1. Make sure you’re logged on to the Discord website.
  2. Navigate to the application page
  3. Click on the “New Application” button.
  4. Fill out the form and click on “Create Application”.
  5. Go to the “Bot” tab and then click “Add Bot”. You will have to confirm by clicking "Yes, do it!"
  6. Copy the token and paste it into the token variable below.
  7. Activate OAuth2 to invite the bot to your server.
  8. Install with:
pip install -r requirements.txt
export THE_COUNT_DISCORD_TOKEN=
   
    
python3 main.py

   

Run in docker

docker-compose build
docker run --env THE_COUNT_DISCORD_TOKEN=
   
     discord-counting-bot_countingbot:latest

   

Note: We speak german!

Because of our german-speaking main-channel we switched to german. A multilanguage-option won't be available anytime soon. Fell free to implement it and make a pull request.

Sprich Deutsch, du...

How to start

You need admin rights to set up the bot:

This bot reacts to the Prefix !count

In the channel you want to start counting, type !count counting_channel aktueller_kanal

Alternatively, you can use !count counting_channel your_favorite_channel

Same goes for the logging_channel, which also reacts to any user-commands (!count log_channel aktueller_kanal)

And thats it!

NEW: PROFI-Counter

For the users who counted right more than a given threshold, the user can access the profi_channel

Implemented Commands

Admin-Commands

!count counting_channel aktueller_kanal um den Zählfortschritt in diesem Kanal einzusehen

!count counting_channel @anderer_kanal um den Kanal in dem gezählt wird zu ändern

!count log_channel aktueller_kanal um den Kanal mit Log Nachrichten zu ändern

!count log_channel @anderer_kanal um den Kanal mit Log Nachrichten zu ändern

!count pro_channel aktueller_kanal um den Kanal für Profis zu ändern

!count pro_channel @anderer_kanal um den Kanal für Profis zu ändern

!count pro_role @rolle um die Rolle für Profis zu ändern

!count pro_threshold anzahl um den Threshold zur Profi-Berechtigung zu ändern

User-Commands

!count server - Zeige die Statistiken für den ganzen Server

!count highscore - Zeige die 10 Nutzer, die am häufigsten richtig gezählt haben

!count highcount - Zeige die 10 Nutzer, welche die höchsten Zahlen getippt haben

!count user - Zeige deine eigenen Statistiken

!count user @user - Zeige Statistiken für einen anderen Zählenden

!count drink_count - Zeige die aktuelle Bierschuldentabelle für den Server

!count drink_count me - Zeigt dir alle Bierschuldentabelleneinträge bei denen du dabei bist

!count spend_drink @user - Sag dem Bot Bescheid, dass dir dein zustehendes Bier endlich ausgegeben wurde

!count set_drink- Wenn dein Lieblingsgetränk komischerweise kein Bier sein sollte kannst du das hier ändern (aber kein Radler)!

!count copy_data message_id - Kopiert die Daten vom originalen Bot

!count delete_me Löscht deine Daten aus dem Metaverse (tschüss)

Comments
  • Bump discord-py from 1.7.3 to 2.0.1

    Bump discord-py from 1.7.3 to 2.0.1

    Bumps discord-py from 1.7.3 to 2.0.1.

    Commits
    • cb587f6 Version bump to v2.0.1
    • 58193d1 Add changelogs for v2.0.1
    • e62473a Fix incorrect docs in select menu min_values
    • 7c1dffb Use importlib.metadata instead of pkg_resources
    • b92fd65 Document app_commands.Choice limits
    • 9237106 Add v2 changelog entry to point to migrating page
    • f5e3074 Update version guarantees
    • b12b4b1 Mark public callbacks as positional-only
    • 01bb7ec [commands] Add support for types.Union to Greedy
    • 6a6e261 [tasks] Add missing decorator sign
    • Additional commits viewable in compare view

    Dependabot compatibility score

    Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


    Dependabot commands and options

    You can trigger Dependabot actions by commenting on this PR:

    • @dependabot rebase will rebase this PR
    • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
    • @dependabot merge will merge this PR after your CI passes on it
    • @dependabot squash and merge will squash and merge this PR after your CI passes on it
    • @dependabot cancel merge will cancel a previously requested merge and block automerging
    • @dependabot reopen will reopen this PR if it is closed
    • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
    • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
    • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
    • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
    dependencies 
    opened by dependabot[bot] 1
  • Bump discord-py from 1.7.3 to 2.0.0

    Bump discord-py from 1.7.3 to 2.0.0

    Bumps discord-py from 1.7.3 to 2.0.0.

    Commits
    • 575af0f Version bump to v2.0.0
    • 2bf2bfc Add utils.setup_logging to help set up logging outside of Client.run
    • 1c7747f Fix nested Annotated calls not resolving
    • 8dd186c Fix cache eviction for ratelimit objects
    • 54ee383 [commands] Add warning if Intent.message_content is not enabled
    • cdce8fa Change ui.TextInput.value to not be Optional
    • f52a023 Use built-in isascii instead of regex
    • d78be1f Fix Exception Hierarchy to have the proper heading
    • 659d6b6 Make app_commands.describe examples consistent
    • 84c233e Remove outdated comment in secret.py example
    • Additional commits viewable in compare view

    Dependabot compatibility score

    Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


    Dependabot commands and options

    You can trigger Dependabot actions by commenting on this PR:

    • @dependabot rebase will rebase this PR
    • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
    • @dependabot merge will merge this PR after your CI passes on it
    • @dependabot squash and merge will squash and merge this PR after your CI passes on it
    • @dependabot cancel merge will cancel a previously requested merge and block automerging
    • @dependabot reopen will reopen this PR if it is closed
    • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
    • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
    • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
    • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
    dependencies 
    opened by dependabot[bot] 1
  • [riskant] neu: fails_since_pro und man verliert die pro rolle ggf

    [riskant] neu: fails_since_pro und man verliert die pro rolle ggf

    riskanter pull request, bitte sicherstellen das rollback möglich ist (da nicht wirklich getestet)

    in den stat_headers gibt es jetzt noch 'fails_since_pro', das wird immer um eins inkrementiert wenn ein pro einen fehler macht, und wenn 3 erreicht ist, wird die pro rolle entzogen und der zähler zurückgesetzt

    opened by Finni123 1
  • Bump python-dotenv from 0.19.2 to 0.20.0

    Bump python-dotenv from 0.19.2 to 0.20.0

    Bumps python-dotenv from 0.19.2 to 0.20.0.

    Release notes

    Sourced from python-dotenv's releases.

    Version 0.20.0

    Added

    • Add encoding (Optional[str]) parameter to get_key, set_key and unset_key. (#379 by @​bbc2)

    Fixed

    • Use dict to specify the entry_points parameter of setuptools.setup (#376 by @​mgorny).
    • Don't build universal wheels (#387 by @​bbc2).
    Changelog

    Sourced from python-dotenv's changelog.

    [0.20.0] - 2022-03-24

    Added

    • Add encoding (Optional[str]) parameter to get_key, set_key and unset_key. (#379 by [@​bbc2])

    Fixed

    • Use dict to specify the entry_points parameter of setuptools.setup (#376 by [@​mgorny]).
    • Don't build universal wheels (#387 by [@​bbc2]).
    Commits

    Dependabot compatibility score

    Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


    Dependabot commands and options

    You can trigger Dependabot actions by commenting on this PR:

    • @dependabot rebase will rebase this PR
    • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
    • @dependabot merge will merge this PR after your CI passes on it
    • @dependabot squash and merge will squash and merge this PR after your CI passes on it
    • @dependabot cancel merge will cancel a previously requested merge and block automerging
    • @dependabot reopen will reopen this PR if it is closed
    • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
    • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
    • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
    • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
    dependencies 
    opened by dependabot[bot] 0
  • Fixing IDE warnings

    Fixing IDE warnings

    Lots of unused and unspecified imports. It's not good practise to leave in imports "just in case I need it in the future". Also fixed unawaited coroutine, though the error handling shouldn't be called at all in the first place. However, still nice to have ✨scalable✨ error handling.

    opened by Jojodicus 0
  • Bump discord-py from 1.7.3 to 2.1.0

    Bump discord-py from 1.7.3 to 2.1.0

    Bumps discord-py from 1.7.3 to 2.1.0.

    Commits
    • 24b61a7 Version bump to v2.1.0
    • 6c4b6dc Update changelog
    • 55f272f Document UserFlags.active_developer
    • dad6666 Add ApplicationFlags.active
    • 3d39f70 Add active developer flag
    • cd6fd13 Add AutoModTrigger.repr
    • 84767ef Add AutoModTrigger.regex_patterns support
    • e92a626 Add Pycharm support to coloured logging
    • 5009c83 Implement New Select Types
    • 4c8ba63 Add delete_after into InteractionResponse.send_message
    • Additional commits viewable in compare view

    Dependabot compatibility score

    Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


    Dependabot commands and options

    You can trigger Dependabot actions by commenting on this PR:

    • @dependabot rebase will rebase this PR
    • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
    • @dependabot merge will merge this PR after your CI passes on it
    • @dependabot squash and merge will squash and merge this PR after your CI passes on it
    • @dependabot cancel merge will cancel a previously requested merge and block automerging
    • @dependabot reopen will reopen this PR if it is closed
    • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
    • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
    • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
    • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
    dependencies 
    opened by dependabot[bot] 0
  • Bump python-dotenv from 0.20.0 to 0.21.0

    Bump python-dotenv from 0.20.0 to 0.21.0

    Bumps python-dotenv from 0.20.0 to 0.21.0.

    Release notes

    Sourced from python-dotenv's releases.

    Version 0.21.0

    What's Changed

    Added

    Fixed

    New Contributors

    Full Changelog: https://github.com/theskumar/python-dotenv/compare/v0.20.0...v0.21.0

    Changelog

    Sourced from python-dotenv's changelog.

    [0.21.0] - 2022-09-03

    Added

    Fixed

    Commits
    • b6fe193 Bump version: 0.20.0 → 0.21.0
    • 5d07931 update changelog
    • 490b116 Revert "fix: out of scope error when "dest" variable is undefined #413"
    • b1f041d Add release notes for 0.21.0
    • 6399af6 chore: fix flake8 issue
    • a53d652 fix: out of scope error when "dest" variable is undefined #413
    • a7c811d Update README.md (#415)
    • 914c68e feat(cli) add --format= option to list command (#407)
    • 2f36c08 Drop Python 3.5 and 3.6 and upgrade GA (#393)
    • a50a3bf Add .vscode to gitignore
    • Additional commits viewable in compare view

    Dependabot compatibility score

    Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


    Dependabot commands and options

    You can trigger Dependabot actions by commenting on this PR:

    • @dependabot rebase will rebase this PR
    • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
    • @dependabot merge will merge this PR after your CI passes on it
    • @dependabot squash and merge will squash and merge this PR after your CI passes on it
    • @dependabot cancel merge will cancel a previously requested merge and block automerging
    • @dependabot reopen will reopen this PR if it is closed
    • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
    • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
    • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
    • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
    dependencies 
    opened by dependabot[bot] 0
Owner
Jakob Jung
Just a student from Germany, who gets quite bored with lectures sometimes and who has definitely too much time to update his README
Jakob Jung
A simple bot discord in PY with moderation controls

Voila un bot discord en py avec les commandes simples de modération tout simplement faut changer les lignes 70 vous mettez votre token de votre bot 53

Ethan 1 Nov 20, 2021
A Discord bot that controls Pico-8.

Pico-8 Discord Bot Synopsis: A Discord bot that controls Pico-8. Please let me know if you make any games with this tool! I will simplify the discord.

Camden 1 Jan 28, 2022
A script that takes what you're listening too on Spotify and sets it as your Nertivia custom status.

nertivia-spotify-listening-status A script that takes what you're listening too on Spotify and sets it as your Nertivia custom status. setup Install r

Ben Tettmar 2 Feb 3, 2022
Seems Like Everyone Is Posting This, Thought I Should Too, Tokens Get Locked Upon Creation And Im Not Going To Fix For Several Reasons

Member-Booster Seems Like Everyone Is Posting This, Thought I Should Too, Tokens Get Locked Upon Creation And Im Not Going To Fix For Several Reasons

Mintyz 1 Dec 28, 2021
Pure Python 3 MTProto API Telegram client library, for bots too!

Telethon ⭐️ Thanks everyone who has starred the project, it means a lot! Telethon is an asyncio Python 3 MTProto library to interact with Telegram's A

LonamiWebs 7.3k Jan 1, 2023
Instagram bot that upload images for you which scrape posts from 9gag meme website or other Instagram users , which is 24/7 Automated Runnable.

Autonicgram Automates your Instagram posts by taking images from sites like 9gag or other Instagram accounts and posting it onto your page. Features A

Mastermind 20 Sep 17, 2022
Terminal Bot which will Execute your Commands From telegram bot!

Terminal-Bot see this bot alive: https://t.me/HerokuTerminal_Bot With this bot you can execute system commands on your server. how to config? clone or

Moshe 41 Dec 9, 2022
Automate TikTok follower bot, like bot, share bot, view bot and more using selenium

Zefoy TikTok Automator Automate TikTok follower bot, like bot, share bot, view bot and more using selenium. Click here to report bugs. Usage Download

null 555 Dec 30, 2022
This is a Python bot, which automates logging in, purchasing and planting the seeds. Open source bot and completely free.

?? Sunflower Land Bot ?? ⚠️ Warning I am not responsible for any penalties incurred by those who use the bot, use it at your own risk. This BOT is com

Newerton 18 Aug 31, 2022
A self-bot for discord, written in Python, which will send you notifications to your desktop if it detects an intruder on your discord server

A self-bot for discord, written in Python, which will send you notifications to your desktop if it detects an intruder on your discord server

LevPrav 1 Jan 11, 2022
A simple message content sniping Discord bot which you can run yourself! Sniping API pulled from isobot and Arch bot

Discord Snipe Bot This is a bot made with the same message content sniping API from isobot and Arch bot. It's default prefix is -, however you can als

notsniped 5 Aug 11, 2022
Web-music-bot - A telegram bot which get a *site Url* and sends all songs contain in the Url to telegram

web music bot this is a telegram bot which get a site Url and sends all songs co

Arya Shabane 4 Apr 2, 2022
An Open-Source Discord bot created to provide basic functionality which should be in every discord guild. We use this same bot with additional configurations for our guilds.

A Discord bot completely written to be taken from the source and built according to your own custom needs. This bot supports some core features and is

Tesseract Coding 14 Jan 11, 2022
A telegram bot which can show you the status of telegram bot

BotStatus-Ts-Bot An open source telegram Bot Status bot For demo you can check here The status is updated in every 1 hour About Bot This is a Bot stat

Ts_Bots 8 Nov 17, 2022
An Telegram Bot By @AsmSafone To Stream Videos in Telegram Voice Chat. This is Also The Source Code of The Bot Which is Being Used In @SafoTheBot Group! ❤️

Telegram Video Player Bot (Beta) An Telegram Bot By @AsmSafone To Stream Videos in Telegram Voice Chat. Special Features Supports Live Streaming From

SAF ONE 206 Jan 3, 2023
An Advanced Telegram Bot to Play Radio & Music in Voice Chat. This is Also The Source Code of The Bot Which is Being Used For Playing Radio in @AsmSafone Channel ❤️

Telegram Radio Player V3 An Advanced Telegram Bot to Play Nonstop Radio/Music/YouTube Live in Channel or Group Voice Chats. This is also the source co

SAF ONE 421 Jan 5, 2023
ANKIT-OS/TG-SESSION-HACK-BOT: A Special Repository.Telegram Bot Which Can Hack The Victim By Using That Victim Session

?? ᵀᴱᴸᴱᴳᴿᴬᴹ ᴴᴬᶜᴷ ᴮᴼᵀ ?? The owner would not be responsible for any kind of bans due to the bot. • ⚡ INSTALLING ⚡ • • ??️ Lᴀɴɢᴜᴀɢᴇs Aɴᴅ Tᴏᴏʟs ?? • If

ANKIT KUMAR 2 Dec 24, 2021
A Dm Bot, also knows as Mass DM bot which can send one message to All of the Users in a Specific Server!

Discord DM Bot discord.py 1.7.2 python 3.9.5 asyncio 3.4.3 Installation Cloud Host Tutorial uploaded in YouTube, watch it by clicking here. Local Host

hpriyam8 7 Mar 24, 2022
Easy & powerful bot to check if your all Telegram bots are working or not. This bot status bot updates every 45 minutes & runs for 24x7 hours.

PowerfulBotStatus-IDN-C-X Easy & powerful bot to check if your all Telegram bots are working or not. This bot status bot updates every 45 minutes & ru

IDNCoderX 5 Oct 6, 2022