We now have a Steam Chat Bot!

Discussion in 'Site Discussion' started by Fantasma, Nov 8, 2015.

  1. Fantasma

    aa Fantasma

    Messages:
    888
    Positive Ratings:
    995
    I could do that without hooking it up to the tf2.com bot by having it look at the RSS feed here instead of there, but I feel as though its more appropriate to have it straight from the source
     
  2. Berry

    aa Berry spooky scary skeletons

    Messages:
    1,005
    Positive Ratings:
    1,576
    Great bot, got a few suggestions though:
    • The ability to update our maps without losing our slot (very minor) ie cp_bums_a1 to cp_bums_a2.
    • !maps showing who submitted the map & who has claimed it on feedback.tf2maps.net (or an !mapsadv command doing so to keep chat spam minimal. alternatively showing this stuff on the private chat you get).
    • The bot not sending you a message if the !maps list hasn't changed since you last said !maps (for imp hosts, when you're checking now and then. Again, minor nuisance).
     
  3. Fantasma

    aa Fantasma

    Messages:
    888
    Positive Ratings:
    995
    New command has been added: !updatemap <Current Entry> <New Map name> <New url> <New Notes>

    This will allow users to update their maps in the list, and retain their order in the list.

    Also the MOTD bug has been fixed

    !del has been replaced with !delete
     
    • Like Like x 2
    Last edited: Jan 2, 2016
  4. Yrr

    aa Yrr An Actual Deer

    Messages:
    1,035
    Positive Ratings:
    2,035
    pls make it so the bot tells us what server its talking about when it lists "Map changed to:"

    also pls set up multiple commands per function, ie !del, !delete, !remove etc so that we dont need to keep finding out what the current single command is
     
    • Agree Agree x 2
  5. Hoplitejoe

    aa Hoplitejoe cuz

    Messages:
    72
    Positive Ratings:
    146
    • Thanks Thanks x 1
  6. Yrr

    aa Yrr An Actual Deer

    Messages:
    1,035
    Positive Ratings:
    2,035
    maybe the bot is intelligent and knows people hate maps that start with ctf_
     
    • Thanks Thanks x 1
    • Like Like x 1
    • Agree Agree x 1
    • Useful Useful x 1
    Last edited: Jan 7, 2016
  7. Turnip

    aa Turnip The 80s Vegetable

    Messages:
    1,432
    Positive Ratings:
    804
    Might be the DL location, not the map name.
     
  8. phi

    aa phi Let Pain Be Your Guide

    Messages:
    805
    Positive Ratings:
    1,651
    I uploaded the map and added it with:

    !add ctf_buckland_a2

    and it worked fine.

    Either it's something strange to do with the URL (highly doubt it, as Tekku tried it out with a test mapname and it worked fine) or just an isolated incident.
     
  9. phi

    aa phi Let Pain Be Your Guide

    Messages:
    805
    Positive Ratings:
    1,651
    Got a suggestion:

    Please make the !delete command have syntax that allows a reason to be given; say: !delete <map> <reason>. Make it optional, but PM the submitter of the map if it's set - so, something like this:

    !delete cp_fullbright_a1 "map is fullbright, will break server"

    would return something like this to the submitter:

    Hello <user>, your map "cp_fullbright_a1" has been removed from the TF2M map queue. Reason given: "map is fullbright, will break server"

    It would be helpful with people who come into the chat, submit a broken map, and then leave without realizing the map is broken.
     
    • Agree Agree x 4
  10. Fantasma

    aa Fantasma

    Messages:
    888
    Positive Ratings:
    995
    Update:

    Implemented Phi's suggestion of !delete <mapname> <reason> which will then send to the user the <reason> portion
    Implemented !MotdSetter to see who set the MOTD's
    Implemented !steamID <url> (get steam ID from url) and !mysteamid (gets your own steamID)
    Fixed some bugs regarding server names not being shown on map change, and server names not being shown properly on map run messages.

    That's about it, the groundwork for bot bans is being set, which is a nice little pre-emptive measure in place, but hopefully these small additions are worthwhile.
     
    • Thanks Thanks x 2
  11. Fantasma

    aa Fantasma

    Messages:
    888
    Positive Ratings:
    995
    You can now use:

    !ban <steam url> <duration in days> <reason> To block users from using bot features alongside !unban <url> to alleviate this
    !mysteamid which returns your own steamID

    I must go on a holiday for a week, so I can't make any bot changes during that period, so please if there are any problems be sure to make sure its posted to this thread so I can read when I get back.

    Upcoming however is the ability for multiple commands per function! What I shall ask is your suggestions for what extra commands should be named for each function?
     
  12. Muddy

    Server Staff Muddy Muddy

    Messages:
    2,395
    Positive Ratings:
    4,248
    STOP CHANGING THE COMMANDS AAAAAAARGH

    Also banned users can still add maps:

    01:57 - Muddy: !delete koth_kemptown_a6
    01:57 - [3] VBot.exe: Removed map: koth_kemptown_a6
    01:57 - Muddy: ok try now
    01:57 - phi: !ban http://steamcommunity.com/id/jessmccloud/ 3 test
    01:57 - [2] VBot.exe: Banned user:STEAM_0:1:24972670 (Muddy) for: 3 days. Reason given: test
    01:58 - Muddy: !add koth_kemptown_a6
    01:58 - phi: !maps
    01:58 - Muddy: !maps
    01:58 - [3] VBot.exe: koth_greenhouse_a1 , cp_reckoner_a3 , koth_kemptown_a6 ,
     
  13. Jethro

    Jethro MUSty Complainer

    Messages:
    288
    Positive Ratings:
    261
    It seems to be pointing at a completely unrelated server for the "Au Server". Apparently it changed to surf_cram earlier, with 15 players on it.
     
  14. Fantasma

    aa Fantasma

    Messages:
    888
    Positive Ratings:
    995
    I'm gonna try and hotspot in tonight and look into the au server issue which is incredibly strange. The ban system can wait however since it doesn't affect the majority
     
  15. Freyja

    aa Freyja ¯\_(ツ)_/¯

    Messages:
    2,882
    Positive Ratings:
    5,123
    Can you please add aliases for the commands. The amount of times I've seen someone do !remove and it not work, or !view and it not work...

    Also, having to remove the motd first is extremely frustrating. Basically every time I've seen someoone set the motd they did !motd first and then had to do it again after !removemotd. It should override it.
     
    • Agree Agree x 3
  16. Fantasma

    aa Fantasma

    Messages:
    888
    Positive Ratings:
    995
    The good news is that the code for the alias is ready and good to go (thanks to puff), and the MOTD thing is an easy fix, I just wasn't sure if wiping the existing was the best solution. However Im unable to work on the bot for roughly a week, but will aim to implement both as soon as I can
     
  17. LeSwordfish

    aa LeSwordfish semi-trained quasi-professional

    Messages:
    4,113
    Positive Ratings:
    6,425
    I like the motd thing. Sometimes you don't know if you're overriding one, and think it should stay.
     
    • Useful Useful x 1
  18. Fantasma

    aa Fantasma

    Messages:
    888
    Positive Ratings:
    995
    I'm going to add a warning message saying "you are overriding the current MOTD (MOTD HERE) which had x hours remaining
     
  19. Hyperion

    aa Hyperion L16: Grid Member

    Messages:
    810
    Positive Ratings:
    618
    Can't add maps currently, also bot is working very slowly
     
  20. Fantasma

    aa Fantasma

    Messages:
    888
    Positive Ratings:
    995
    Reloaded the bot, please alert me if the same bug happens and I need to do this again