Results 1 to 3 of 3

Thread: Telegram Bot

  1. #1

    Telegram Bot

    A lot of people in our clan use Telegram, so just for fun I started writing a Telegram bot to handle war notifications / reporting. Here are some of the things it does:

    Telegram users can use /setid to register with the bot. This automatically places their clan in the list for monitoring.

    When war is declared, players who are in the war are notified, along with their map position and the enemy teams win ratio, along with the clans war rules (if set by a leader / co-leader / elder)

    When war starts, players are again notified, and again sent the war rules (in case they changed)

    At: 6 hours, 3 hours, 1 hour, 30 minutes -
    Any player that has not used both attacks is notified.

    When war ends, the results of the war are saved to the database, so you can look up history on a specific player (how often do they attack, their average attack percent, do they attack mirrors, etc etc etc)
    [NOTE] - Only clan leaders can look up war stats for players in their own clan. No searching other clans statistics!

    When war ends, a report is sent to the leaders / co-leaders / elders, showing who failed to attack, didn't get many stars, etc.

    Examples:
    (As soon as war ends, this is sent to leaders)
    War Report: (Win) 19 to 9

    Flagged Members:

    <name3> no attacks.
    <name6> attacked once.
    <name9> got 1 stars.
    <name9> attacked once.
    <name9> (#9) attacked #6
    <name4> no attacks.
    <name7> no attacks.
    /war command:
    Stage: War Ended (Win)10 v 10
    ----------------------------------
    <CLAN>: 19 ⭐️
    12 attacks made out of 20
    ----------------------------------
    <OPPONENT>: 9 ⭐️
    7 attacks made out of 20
    ----------------------------------
    Members:
    ----------------------------------
    <name1>
    2 ⚔️ - 3 ⭐️ (59% damage)
    --------------------
    <name2>
    2 ⚔️ - 3 ⭐️ (69% damage)
    --------------------
    <name3>
    0 ⚔️ - 0 ⭐️ (0% damage)
    --------------------
    <name4>
    0 ⚔️ - 0 ⭐️ (0% damage)
    --------------------
    <name5>
    2 ⚔️ - 5 ⭐️ (93% damage)
    --------------------
    <name6>
    1 ⚔️ - 2 ⭐️ (73% damage)
    --------------------
    <name7>
    0 ⚔️ - 0 ⭐️ (0% damage)
    --------------------
    <name8>
    2 ⚔️ - 3 ⭐️ (64% damage)
    --------------------
    <name9>
    1 ⚔️ - 1 ⭐️ (71% damage)
    --------------------
    <name10>
    2 ⚔️ - 3 ⭐️ (68% damage)
    --------------------
    If you use Telegram and want to try it, @ccmgtbot
    Keep in mind, it's a work in progress, so it may be down for short periods of time.

  2. #2
    Senior Member
    Join Date
    Oct 2016
    Posts
    240
    This sounds great! I'll give it a try. Thanks in advance for all your hard work.

  3. #3
    Junior Member
    Join Date
    Feb 2016
    Posts
    48
    Nice...I'm doing something similar in Discord... Currently I dont message people directly, but given the number of late attacks we see I might start doing that.... will post a seperate thread with the things I've done so far. Maybe some of it is usefull for your bot

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •