We now have a Steam Chat Bot!

Fantaboi

Gone and one day forgotten
aa
Mar 11, 2013
892
1,050
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
 

Berry

resident homo
aa
Dec 27, 2012
1,056
1,898
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).
 

Fantaboi

Gone and one day forgotten
aa
Mar 11, 2013
892
1,050
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
 
Last edited:

Yrr

An Actual Deer
aa
Sep 20, 2015
1,308
2,743
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
 
Jul 30, 2014
75
153

Yrr

An Actual Deer
aa
Sep 20, 2015
1,308
2,743
maybe the bot is intelligent and knows people hate maps that start with ctf_
 
Last edited:
Jul 6, 2015
1,425
819
15:02 -o ๊: !ADD ctf_buckland_a2 https://www.dropbox.com/s/7mdizch54a0otqb/ctf_buckland_a2.bsp?dl=0
15:03 -o ๊: !maps
15:03 - [1] VBot.exe: koth_somethin_a10 ,
~~~~~~~~​
15:05 -o ๊: !ADD <ctf_buckland_a2> <https://www.dropbox.com/s/7mdizch54a0otqb/ctf_buckland_a2.bsp?dl=0>
15:05 - [1] VBot.exe: Added: <ctf_buckland_a2>

Not sure why the bot only wants to add this map when brackets are around it, you might want to check this out.
Might be the DL location, not the map name.
 

phi

aa
Nov 6, 2011
832
1,815
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.
 

phi

aa
Nov 6, 2011
832
1,815
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.
 

Fantaboi

Gone and one day forgotten
aa
Mar 11, 2013
892
1,050
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.
 

Fantaboi

Gone and one day forgotten
aa
Mar 11, 2013
892
1,050
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?
 

Muddy

Muddy
aa
Sep 5, 2014
2,574
4,592
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 ,
 

Jethro

MUSty Complainer
Nov 2, 2009
287
281
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.
 

Fantaboi

Gone and one day forgotten
aa
Mar 11, 2013
892
1,050
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
 

Freyja

aa
Jul 31, 2009
2,994
5,813
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.
 

Fantaboi

Gone and one day forgotten
aa
Mar 11, 2013
892
1,050
Can you please add aliases for the commands.

Also, having to remove the motd first is extremely frustrating.

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
 

Fantaboi

Gone and one day forgotten
aa
Mar 11, 2013
892
1,050
I like the motd thing. Sometimes you don't know if you're overriding one, and think it should stay.

I'm going to add a warning message saying "you are overriding the current MOTD (MOTD HERE) which had x hours remaining
 

Fantaboi

Gone and one day forgotten
aa
Mar 11, 2013
892
1,050
Reloaded the bot, please alert me if the same bug happens and I need to do this again