Блог пользователя fjuengermann

Автор fjuengermann, история, 4 года назад, По-английски

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.

  • Проголосовать: нравится
  • +112
  • Проголосовать: не нравится

»
4 года назад, # |
  Проголосовать: нравится +40 Проголосовать: не нравится

Enjoy the features, I hope you like them!

»
4 года назад, # |
  Проголосовать: нравится +8 Проголосовать: не нравится

Thank you very much!!

  • »
    »
    4 года назад, # ^ |
      Проголосовать: нравится +16 Проголосовать: не нравится

    You're welcome!

    • »
      »
      »
      2 года назад, # ^ |
        Проголосовать: нравится +10 Проголосовать: не нравится

      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.

      • »
        »
        »
        »
        2 года назад, # ^ |
          Проголосовать: нравится 0 Проголосовать: не нравится

        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 года назад, # |
  Проголосовать: нравится +8 Проголосовать: не нравится

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

  • »
    »
    4 года назад, # ^ |
      Проголосовать: нравится 0 Проголосовать: не нравится

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

    • »
      »
      »
      4 года назад, # ^ |
        Проголосовать: нравится +8 Проголосовать: не нравится

      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.

»
3 года назад, # |
Rev. 2   Проголосовать: нравится +10 Проголосовать: не нравится

What does this emoji combo mean? fjuengermann

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

  • »
    »
    3 года назад, # ^ |
      Проголосовать: нравится +10 Проголосовать: не нравится

    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.

»
3 года назад, # |
  Проголосовать: нравится +10 Проголосовать: не нравится

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

»
3 года назад, # |
  Проголосовать: нравится +8 Проголосовать: не нравится

Can anyone confirm if the bot is down or not ?

»
3 года назад, # |
  Проголосовать: нравится +10 Проголосовать: не нравится

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

  • »
    »
    3 года назад, # ^ |
      Проголосовать: нравится +8 Проголосовать: не нравится

    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 года назад, # |
  Проголосовать: нравится +10 Проголосовать: не нравится

bot is dead now:(

  • »
    »
    3 года назад, # ^ |
      Проголосовать: нравится 0 Проголосовать: не нравится

    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 года назад, # ^ |
        Проголосовать: нравится +10 Проголосовать: не нравится

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

      • »
        »
        »
        »
        3 года назад, # ^ |
          Проголосовать: нравится 0 Проголосовать: не нравится

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

»
3 года назад, # |
  Проголосовать: нравится 0 Проголосовать: не нравится

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

  • »
    »
    3 года назад, # ^ |
      Проголосовать: нравится 0 Проголосовать: не нравится

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

  • »
    »
    3 года назад, # ^ |
      Проголосовать: нравится 0 Проголосовать: не нравится

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

    • »
      »
      »
      3 года назад, # ^ |
      Rev. 4   Проголосовать: нравится 0 Проголосовать: не нравится

      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.

»
18 месяцев назад, # |
  Проголосовать: нравится +11 Проголосовать: не нравится

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 );
  • »
    »
    18 месяцев назад, # ^ |
      Проголосовать: нравится 0 Проголосовать: не нравится

    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.

»
16 месяцев назад, # |
  Проголосовать: нравится 0 Проголосовать: не нравится

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

  • »
    »
    16 месяцев назад, # ^ |
      Проголосовать: нравится 0 Проголосовать: не нравится

    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).

    • »
      »
      »
      14 месяцев назад, # ^ |
        Проголосовать: нравится 0 Проголосовать: не нравится

      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.