fjuengermann's blog

By fjuengermann, history, 4 years ago, In English

All your dreams have finally come true!

No, unfortunately, you are not red. But even better:

tob123 and I have developed a Telegram Bot (@codeforces_live_bot). Top features:

  • See your and your friends' performance summarized after the contest and receive "motivational" advise
  • Never miss a contest again: receive configurable contest reminders
  • Watch your friends' standings from everywhere on a live-updating scoreboard with rating predictions (thanks to CFPredictor by WasylF)
  • No need to spam F5 anymore while waiting for the system tests: get notified when your solution passes (or fails) the system tests

At the moment, we already have 400 users that found the bot through the Telegram search function. Try it out yourself!

Feel free to leave a comment with your favorite feature, further improvements, and general feedback. Also, you can find the source code on Github.

  • Vote: I like it
  • +112
  • Vote: I do not like it

| Write comment?
»
4 years ago, # |
  Vote: I like it +40 Vote: I do not like it

Enjoy the features, I hope you like them!

»
4 years ago, # |
  Vote: I like it +8 Vote: I do not like it

Thank you very much!!

  • »
    »
    4 years ago, # ^ |
      Vote: I like it +16 Vote: I do not like it

    You're welcome!

    • »
      »
      »
      3 years ago, # ^ |
        Vote: I like it +10 Vote: I do not like it

      I have a question. I added some friends using the /add_friend function in the bot, but none of them are showing up in my CF account. Is there a way to "export" them from the API to my account without having to add them one by one? They are quite a lot, 50+ accounts I think.

      • »
        »
        »
        »
        3 years ago, # ^ |
          Vote: I like it 0 Vote: I do not like it

        While we import your friends from CF into the bot if you have added your API key, the reverse is currently not true. I am not aware of a CF-API call to add friends to a user. So if you often add friends and also want them as CF friends, I recommend to add them on CF and they will then be imported into the bot.

        You probably have to do it manually now. /friend_ratings might at least help to get you the list of friends.

»
4 years ago, # |
  Vote: I like it +8 Vote: I do not like it

Have fun with the contest today. Send /current_standings to see a live-updating scoreboard with rating predictions.

  • »
    »
    4 years ago, # ^ |
      Vote: I like it 0 Vote: I do not like it

    Will this bot work even if I don't give the API key for friend stadings ?

    • »
      »
      »
      4 years ago, # ^ |
        Vote: I like it +8 Vote: I do not like it

      Yes. It will display the standings for your friends. You can add friends by adding your API key (your Codeforces friends will be synced), or manually with /add_friend.

      When you send /friend_ratings you see all the friends you have currently added.

»
4 years ago, # |
Rev. 2   Vote: I like it +10 Vote: I do not like it

What does this emoji combo mean? fjuengermann

Screenshot-from-2020-12-04-21-50-55

  • »
    »
    4 years ago, # ^ |
      Vote: I like it +10 Vote: I do not like it

    The bot uses different emoji to display your "rank", similar to Codeforces' colors. Try out the /help command to see all ranks:

    screenshot

    It looks like your Telegram or OS version does unfortunately not support the emoji we used so it displayed the fallback combination of these two emoji.

    • »
      »
      »
      4 years ago, # ^ |
      Rev. 2   Vote: I like it 0 Vote: I do not like it

      Zombie, construction worker? , astronaut , doctor? , scholar, wizard , superhero?

      • »
        »
        »
        »
        4 years ago, # ^ |
          Vote: I like it +21 Vote: I do not like it

        That's right! Let me know if you have any more or any better suggestions :)

»
4 years ago, # |
  Vote: I like it +10 Vote: I do not like it

I think the bot is having a glitch, it's not working

  • »
    »
    4 years ago, # ^ |
      Vote: I like it +19 Vote: I do not like it

    Thanks for letting me know. I'm on it.

  • »
    »
    4 years ago, # ^ |
      Vote: I like it +19 Vote: I do not like it

    Should be up again. Let me know if there are any more problems.

    • »
      »
      »
      4 years ago, # ^ |
      Rev. 2   Vote: I like it +10 Vote: I do not like it

      Thanks a lot for such a prompt response, highly appreciate it. The bot is working as intended now.

»
4 years ago, # |
  Vote: I like it +8 Vote: I do not like it

Can anyone confirm if the bot is down or not ?

  • »
    »
    4 years ago, # ^ |
      Vote: I like it +3 Vote: I do not like it

    Oh I'm very sorry, it is up again! If there are any problems again, please let me know.

    • »
      »
      »
      4 years ago, # ^ |
        Vote: I like it +8 Vote: I do not like it

      Thanks again for your prompt response, the bot is up now :)

    • »
      »
      »
      4 years ago, # ^ |
        Vote: I like it +10 Vote: I do not like it

      The bot is not responding. Please fix it.

»
4 years ago, # |
  Vote: I like it +10 Vote: I do not like it

IG the bot is down again. it isn't responding. plz fix it.

  • »
    »
    3 years ago, # ^ |
      Vote: I like it +8 Vote: I do not like it

    Thanks for letting us know! There was a bug that prevented the bot from responding after an error had occurred. I hopefully fixed it now :D Please notify us in case the problem occurs again.

»
3 years ago, # |
  Vote: I like it +10 Vote: I do not like it

bot is dead now:(

  • »
    »
    3 years ago, # ^ |
      Vote: I like it 0 Vote: I do not like it

    Thanks for notifying us! Somehow, the server we are hosting the bot on decided to do a reboot :/ But it is now up again.

    • »
      »
      »
      3 years ago, # ^ |
        Vote: I like it +10 Vote: I do not like it

      I think it'd be good if the bot has some contact in description for such cases

      • »
        »
        »
        »
        3 years ago, # ^ |
          Vote: I like it 0 Vote: I do not like it

        Yes, that's a good point. We will put some contact details (or at least a link to this post) in there soon.

»
3 years ago, # |
  Vote: I like it 0 Vote: I do not like it

I want to suggest you to add message notification option in bot

  • »
    »
    3 years ago, # ^ |
      Vote: I like it 0 Vote: I do not like it

    If it's impossible or too complicated, sorry. I'm not into CF Api and bot making.

  • »
    »
    3 years ago, # ^ |
      Vote: I like it 0 Vote: I do not like it

    Do you mean you get notified on Telegram when someone messages you on CF or when someone comments on your blog?

    • »
      »
      »
      3 years ago, # ^ |
      Rev. 4   Vote: I like it 0 Vote: I do not like it

      I meant getting notifications on Telegram when someone dms you on CF. But i think notifications about answers in comments under blogs will be useful too.

»
2 years ago, # |
  Vote: I like it +11 Vote: I do not like it

here is a javascript snippet I wrote to copy paste my friend list from cf. I run this in chrome console then paste it by running /add_friend command on telegram bot.


const a = document.querySelectorAll( "#pageContent > div.datatable > div:nth-child(6) > table > tbody > tr > td:nth-child(2) > a" ); let friends = a[0].innerText; for (let i = 1; i < a.length; i++) { friends += "," + a[i].innerText; } prompt( "ctrl + c to copy this list and then use on telegram bot", friends );
  • »
    »
    2 years ago, # ^ |
      Vote: I like it 0 Vote: I do not like it

    Great, thank you for sharing this! Alternatively, you can also add your Codefores API-key in the bot settings — all your friends will then automatically be imported periodically.

»
2 years ago, # |
  Vote: I like it 0 Vote: I do not like it

Hey plz help me. Maybe I am faceting a bug on this bot. Recently I have changed my handle fron "fuadul" to "Fuadul". And now bot is alerting me that Unknown user in this list

  • »
    »
    2 years ago, # ^ |
      Vote: I like it 0 Vote: I do not like it

    I am facing the same message. But I have not changed my handle. This message appears only if I execute command /friend_ratings. (I've checked all my friends and they havn't changed handle too).

    • »
      »
      »
      21 month(s) ago, # ^ |
        Vote: I like it 0 Vote: I do not like it

      Hi, sorry for the late reply! Are you still facing the issue? Did you change your handle during the New Year special or somehow afterwards? I will look into it, but what you can try is changing your handle in the bot /settings and /remove_friend your old handle. Otherwise, "Unknown user in this list" can sometimes occur if the Codeforces api is down, which then should be only temporarily.

      • »
        »
        »
        »
        21 month(s) ago, # ^ |
          Vote: I like it 0 Vote: I do not like it

        Thank you. Problem has already disappeared.