Upvote Upvoted 59 Downvote Downvoted
1 2
Payload: the TF2 Discord bot that does it all.
posted in Projects
1
#1
0 Frags +

WEBSITE: http://payload.tf

Rewriting because I was just told about this projects section.

Hello, I made a discord bot that literally blows all other TF2 Discord bots out of the water. It's called Payload, and it's pretty nifty.

Basically imagine the SourceConnectLink bot but on a ton of steroids and never goes down.

Just a short list of some of the things this bot can do:

Here's some screenshots that showcase some stuff:
https://i.imgur.com/svGe6a7.png
https://i.imgur.com/4ZfMMqE.png
https://i.imgur.com/OuXB1yj.png (and it filters out http stuff: https://i.imgur.com/mRs9EtR.png)

More information is available using the help command (pls info).

Here's the invite link: https://discordapp.com/api/oauth2/authorize?client_id=443189988130291712&permissions=51200&scope=bot

If you have any suggestions or issues just post 'em down below.
Enjoy!

The command prefix is pls because we do not tolerate toxic gamers here.

MILESTONES:
6/25/18 - Payload is now in 50 Discord servers! :D
6/26/18 - Over 3000 people are now using Payload! You can track usage stats at http://payload.tf
6/30/18 - 75 servers and 4000 users!

CHANGELOG:
6/21/18:
- Fixed an issue with cloudflare blocking the bot from taking snapshots of ESEA match pages.
- Updated the bot presence to display users currently using the bot. (We hit 1000 users really quickly lmao)
6/22/18:
- Fixed an issue with the cloudflare ddos protection bypass sometimes generating 2 identical preview images.
6/23/18:
- NEW COMMAND! Added a command to fetch a demo file from a logs.tf link. Use the help command to find out more about it.
- Made the "pls demo" command more accurate by adding match duration checks.
- Added a 15 second timeout to the demos.tf api request because it's just so slow sometimes.
- Added ESEA team previews.
6/24/18:
- Added TFTV thread previews.
6/25/18:
- Added the "pls ugc" command, which takes a console's status output as a command and returns a list of teams appearing there (https://i.imgur.com/Z9GO2uK.png).
6/27/18:
- Added server configs!
- Changed "pls help" to "pls info".
6/29/18:
- Rewrote entire bot to make it more modular.
- Changed how deleted/edited messages are cached for "pls snipe". Messages are now removed from the snipe pool 5 minutes after they were deleted/edited.
- Updated TFTV thread previews to support more HTML characters.
- Added the "pls 8ball" command (http://payload.tf/info/#cmd).
6/30/18:
- Added the "pls tf2" command (http://payload.tf/info/#cmd).
- Fixed the logs.tf profile stats average thing.
- Fixed the steam connect link generator not being case sensitive.
- Fixed commands being case sensitive (you can probably tell what happened here).
7/1/18:
- Fixed the "pls ugc" command to display all users and made it cleaner.
- The "pls demo" command can now take more than one logs.tf link.
- Updated the "pls info" command to make it prettier and less spammy.
7/2/18:
- Added the "pls link" and "pls logs" command. More info at http://payload.tf/info/#cmd
7/4/18:
- Updated the user count to be more accurate.
- Updated the bot to not cache edited messages which's content is the same.
7/5/18:
- Added the "pls restrict" command.
7/10/18:
- Fixed the "pls ugc" command to actually work correctly.
7/15/18:
- Added server aliasing to the "pls exec" command. Try it out to see how it works!
7/19/18:
- Added custom payload connect links to work around Discord's url limitations.

WEBSITE: http://payload.tf

Rewriting because I was just told about this projects section.

Hello, I made a discord bot that literally blows all other TF2 Discord bots out of the water. It's called Payload, and it's pretty nifty.

Basically imagine the SourceConnectLink bot but on a ton of steroids and never goes down.

Just a short list of some of the things this bot can do:
[list]
[*]Logs.tf previews
[*]ESEA match result previews
[*]Remote RCON command execution
[*]Source connect links (of course)
[*]UGC team previews
[*]This thing: https://i.imgur.com/t634CaC.png
[*]A log combiner (powered by logs.sharky.tf)
[/list]

Here's some screenshots that showcase some stuff:
https://i.imgur.com/svGe6a7.png
https://i.imgur.com/4ZfMMqE.png
https://i.imgur.com/OuXB1yj.png (and it filters out http stuff: https://i.imgur.com/mRs9EtR.png)

More information is available using the help command (pls info).

Here's the invite link: https://discordapp.com/api/oauth2/authorize?client_id=443189988130291712&permissions=51200&scope=bot

If you have any suggestions or issues just post 'em down below.
Enjoy!

The command prefix is pls because we do not tolerate toxic gamers here.

MILESTONES:
6/25/18 - Payload is now in 50 Discord servers! :D
6/26/18 - Over 3000 people are now using Payload! You can track usage stats at http://payload.tf
6/30/18 - 75 servers and 4000 users!

CHANGELOG:
6/21/18:
- Fixed an issue with cloudflare blocking the bot from taking snapshots of ESEA match pages.
- Updated the bot presence to display users currently using the bot. (We hit 1000 users really quickly lmao)
6/22/18:
- Fixed an issue with the cloudflare ddos protection bypass sometimes generating 2 identical preview images.
6/23/18:
- NEW COMMAND! Added a command to fetch a demo file from a logs.tf link. Use the help command to find out more about it.
- Made the "pls demo" command more accurate by adding match duration checks.
- Added a 15 second timeout to the demos.tf api request because it's just so slow sometimes.
- Added ESEA team previews.
6/24/18:
- Added TFTV thread previews.
6/25/18:
- Added the "pls ugc" command, which takes a console's status output as a command and returns a list of teams appearing there (https://i.imgur.com/Z9GO2uK.png).
6/27/18:
- Added server configs!
- Changed "pls help" to "pls info".
6/29/18:
- Rewrote entire bot to make it more modular.
- Changed how deleted/edited messages are cached for "pls snipe". Messages are now removed from the snipe pool 5 minutes after they were deleted/edited.
- Updated TFTV thread previews to support more HTML characters.
- Added the "pls 8ball" command (http://payload.tf/info/#cmd).
6/30/18:
- Added the "pls tf2" command (http://payload.tf/info/#cmd).
- Fixed the logs.tf profile stats average thing.
- Fixed the steam connect link generator not being case sensitive.
- Fixed commands being case sensitive (you can probably tell what happened here).
7/1/18:
- Fixed the "pls ugc" command to display all users and made it cleaner.
- The "pls demo" command can now take more than one logs.tf link.
- Updated the "pls info" command to make it prettier and less spammy.
7/2/18:
- Added the "pls link" and "pls logs" command. More info at http://payload.tf/info/#cmd
7/4/18:
- Updated the user count to be more accurate.
- Updated the bot to not cache edited messages which's content is the same.
7/5/18:
- Added the "pls restrict" command.
7/10/18:
- Fixed the "pls ugc" command to actually work correctly.
7/15/18:
- Added server aliasing to the "pls exec" command. Try it out to see how it works!
7/19/18:
- Added custom payload connect links to work around Discord's url limitations.
2
#2
34 Frags +

oh NO my old TF2 Discord bot is OBSOLETE

oh NO my old TF2 Discord bot is OBSOLETE
3
#3
1 Frags +

maybe informs when certain matches are going to be played. like when Ascent play the next match time/date

idk looks good overall though.

maybe informs when certain matches are going to be played. like when Ascent play the next match time/date

idk looks good overall though.
4
#4
3 Frags +
Funsoh NO my old TF2 Discord bot is OBSOLETE

legacy ruined
EDIT: Add this one fool

[quote=Funs]oh NO my old TF2 Discord bot is OBSOLETE[/quote]
legacy ruined
EDIT: Add this one fool
5
#5
2 Frags +

Any chance on implementing features similar to the ones for UGC and ESEA but for ETF2L?

Other than that, looks great.

Any chance on implementing features similar to the ones for UGC and ESEA but for ETF2L?

Other than that, looks great.
6
#6
0 Frags +
TraxgarteAny chance on implementing features similar to the ones for UGC and ESEA but for ETF2L?

Other than that, looks great.

Yes, I'm working on implementing team previews for all major leagues atm.

[quote=Traxgarte]Any chance on implementing features similar to the ones for UGC and ESEA but for ETF2L?

Other than that, looks great.[/quote]
Yes, I'm working on implementing team previews for all major leagues atm.
7
#7
23 Frags +

https://i.gyazo.com/bcea14b6aa72b42d0dfcf775157448fa.png

[img]https://i.gyazo.com/bcea14b6aa72b42d0dfcf775157448fa.png[/img]
8
#8
13 Frags +
tatuwahhttps://i.gyazo.com/bcea14b6aa72b42d0dfcf775157448fa.png

Fixed.

[quote=tatuwah][img]https://i.gyazo.com/bcea14b6aa72b42d0dfcf775157448fa.png[/img][/quote]
Fixed.
9
#9
4 Frags +

As per request of Xieso#3766 on Discord, the "pls demo" command has been added to the bot!

As per request of Xieso#3766 on Discord, the "pls demo" command has been added to the bot!
10
#10
5 Frags +

Building up a sweet new website: http://payload.tf

The learn more button is just a link to this thread for now, but it will be fancified in the future.

Building up a sweet new website: http://payload.tf

The learn more button is just a link to this thread for now, but it will be fancified in the future.
11
#11
2 Frags +

wtf this is rad as hell

wtf this is rad as hell
12
#12
0 Frags +

my boy shark tryna overtake tf2bots everywhere

my boy shark tryna overtake tf2bots everywhere
13
#13
1 Frags +

I'm currently working on a companion sm plugin that you can add to your servers to automatically post logs/results every time a match is finished, as well as allowing you to use some Discord commands in-game. However, it might take a while since I've honestly never done Source Pawn stuff before.

If any of you are willing to help me with this it would be greatly appreciated and would help speed up this process.

Oh, and also now we have status team checking in the bot. So you can make sure UGC matches are fair without having everyone in the UGC Discord know you're validating a team's players.

EDIT: Yes, I'm adding the same functionality for ESEA now.
EDIT: I'm retarded.

I'm currently working on a companion sm plugin that you can add to your servers to automatically post logs/results every time a match is finished, as well as allowing you to use some Discord commands in-game. However, it might take a while since I've honestly never done Source Pawn stuff before.

If any of you are willing to help me with this it would be greatly appreciated and would help speed up this process.

Oh, and also now we have status team checking in the bot. So you can make sure UGC matches are fair without having everyone in the UGC Discord know you're validating a team's players.

[s]EDIT: Yes, I'm adding the same functionality for ESEA now.[/s]
EDIT: I'm retarded.
14
#14
0 Frags +

hello i have some points:

  1. pls help is reasonably common phrase, and considering the bot then fills the entire screen its not a good idea, a better/adjustable trigger word is needed
  2. related to above commands need permissions, rn anyone can spam the bot
  3. the rtd rolls 6 way too often, rigged??????


nice bot tho, the logs stuff is really cool :)
*btw if im an idiot and these arent problems dont make fun of me im very self concious about it :(

hello i have some points:
[olist]
[*] pls help is reasonably common phrase, and considering the bot then fills the entire screen its not a good idea, a better/adjustable trigger word is needed
[*] related to above commands need permissions, rn anyone can spam the bot
[*] the rtd rolls 6 way too often, rigged??????
[/olist]
nice bot tho, the logs stuff is really cool :)
*btw if im an idiot and these arent problems dont make fun of me im very self concious about it :(
15
#15
0 Frags +
Dinghello i have some points:
  1. pls help is reasonably common phrase, and considering the bot then fills the entire screen its not a good idea, a better/adjustable trigger word is needed
  2. related to above commands need permissions, rn anyone can spam the bot
  3. the rtd rolls 6 way too often, rigged??????

nice bot tho, the logs stuff is really cool :)
*btw if im an idiot and these arent problems dont make fun of me im very self concious about it :(
  1. That's actually a good idea, I'm thinking of remaking the help command to display stats and stuff, so you can expect pls help to be changed to pls info relatively soon.
  2. The commands/utilities are meant to be usable by anyone since they aren't commands that edit the server or manage server members/channels. But you could make a channel and limit the bot to that channel if you're worried about spam.
  3. :^)
[quote=Ding]hello i have some points:
[olist]
[*] pls help is reasonably common phrase, and considering the bot then fills the entire screen its not a good idea, a better/adjustable trigger word is needed
[*] related to above commands need permissions, rn anyone can spam the bot
[*] the rtd rolls 6 way too often, rigged??????
[/olist]
nice bot tho, the logs stuff is really cool :)
*btw if im an idiot and these arent problems dont make fun of me im very self concious about it :([/quote]

[olist]
[*] That's actually a good idea, I'm thinking of remaking the help command to display stats and stuff, so you can expect pls help to be changed to pls info relatively soon.
[*] The commands/utilities are meant to be usable by anyone since they aren't commands that edit the server or manage server members/channels. But you could make a channel and limit the bot to that channel if you're worried about spam.
[*] :^)
[/olist]
16
#16
2 Frags +

HUGE UPDATE!

I've added individual server configuration for all preview utilities! What does that mean? Well...
https://i.imgur.com/tAdHhvR.png
https://i.imgur.com/tWNURaJ.png

Don't want Payload to clutter your chat with, say, TFTV thread previews? Don't worry! Simply use the "**tftv thread 0" command to disable TFTV thread previews on your server.

You can now configure Payload to only preview links and stuff you want to preview. So basically anything that doesn't use a prefix that causes Payload to respond can now be disabled on your server. Try it out with **help.

You must be a server admin to use ** commands.

Also "pls help" has been changed to "pls info".

HUGE UPDATE!

I've added individual server configuration for all preview utilities! What does that mean? Well...
https://i.imgur.com/tAdHhvR.png
https://i.imgur.com/tWNURaJ.png

Don't want Payload to clutter your chat with, say, TFTV thread previews? Don't worry! Simply use the "**tftv thread 0" command to disable TFTV thread previews on your server.

You can now configure Payload to only preview links and stuff you want to preview. So basically anything that doesn't use a prefix that causes Payload to respond can now be disabled on your server. Try it out with **help.

You must be a server admin to use ** commands.

Also "pls help" has been changed to "pls info".
17
#17
4 Frags +

The entire bot has been rewritten to make the code easier to read and to make it faster. I have for extensive testing on a beta not before releasing this update to the actual bot. However, I really doubt I caught everything. If you see ANY bugs please report them here.

Thanks for 4000 users!

The entire bot has been rewritten to make the code easier to read and to make it faster. I have for extensive testing on a beta not before releasing this update to the actual bot. However, I really doubt I caught everything. If you see ANY bugs please report them here.

Thanks for 4000 users!
18
#18
1 Frags +

NEW STUFF!

Added the "pls link" and "pls logs" command as per request.
- pls link <steam id>: Links a steam id to your discord account GLOBALLY. Meaning your accounts are linked on any server that has Payload.
- pls logs [@mention]: Fetches your last log or a user's last log if mentioned. Can only be used if the player who's being looked up has their account linked.

NEW STUFF!

Added the "pls link" and "pls logs" command as per request.
- pls link <steam id>: Links a steam id to your discord account GLOBALLY. Meaning your accounts are linked on any server that has Payload.
- pls logs [@mention]: Fetches your last log or a user's last log if mentioned. Can only be used if the player who's being looked up has their account linked.
19
#19
1 Frags +

The long-awaited command usage restriction is here. You can now restrict the bot from answering commands with "pls restrict". The bot will still generate previews and such in restricted channels.

Examples:
pls restrict #some-channel #maybe-another-channel
- restricts the bot from #some-channel and #maybe-another-channel
pls restrict #maybe-another-channel
- unrestricts the bot from #maybe-another-channel (aka, toggable)

Enjoy.

(you must have the "manage channels" permission to use the command)

The long-awaited command usage restriction is here. You can now restrict the bot from answering commands with "pls restrict". The bot will still generate previews and such in restricted channels.

Examples:
pls restrict #some-channel #maybe-another-channel
- restricts the bot from #some-channel and #maybe-another-channel
pls restrict #maybe-another-channel
- unrestricts the bot from #maybe-another-channel (aka, toggable)

Enjoy.

(you must have the "manage channels" permission to use the command)
20
#20
0 Frags +

https://gyazo.com/1d01d611028897d461c5e2ee70f553c1

Bot doesnt know how to deal with some characters, or might be discord idk

https://gyazo.com/1d01d611028897d461c5e2ee70f553c1

Bot doesnt know how to deal with some characters, or might be discord idk
21
#21
0 Frags +
Shooshhttps://gyazo.com/1d01d611028897d461c5e2ee70f553c1

Bot doesnt know how to deal with some characters, or might be discord idk

its a discord thing

[quote=Shoosh]https://gyazo.com/1d01d611028897d461c5e2ee70f553c1

Bot doesnt know how to deal with some characters, or might be discord idk[/quote]
its a discord thing
22
#22
0 Frags +
Shooshhttps://gyazo.com/1d01d611028897d461c5e2ee70f553c1

Bot doesnt know how to deal with some characters, or might be discord idk

Discord automatically tries to convert special characters like those into url-safe versions of them when using them in urls. So yea, sadly it's a discord thing so there's not much I can do about it.

I am trying out workarounds to that problem right now though, so just sit tight for a week or so :)

EDIT: Here's a table for those interested https://perishablepress.com/stop-using-unsafe-characters-in-urls/

[quote=Shoosh]https://gyazo.com/1d01d611028897d461c5e2ee70f553c1

Bot doesnt know how to deal with some characters, or might be discord idk[/quote]
Discord automatically tries to convert special characters like those into url-safe versions of them when using them in urls. So yea, sadly it's a discord thing so there's not much I can do about it.

I am trying out workarounds to that problem right now though, so just sit tight for a week or so :)

EDIT: Here's a table for those interested https://perishablepress.com/stop-using-unsafe-characters-in-urls/
23
#23
0 Frags +

Payload now has the ability to generate custom payload connect links! You will no longer have this problem:
https://gyazo.com/1d01d611028897d461c5e2ee70f553c1

The custom URL might look wonky, but clicking it should take you to your server.

Enjoy!

Payload now has the ability to generate custom payload connect links! You will no longer have this problem:
https://gyazo.com/1d01d611028897d461c5e2ee70f553c1

The custom URL might look wonky, but clicking it should take you to your server.

Enjoy!
24
#24
0 Frags +

Amazing, thanks!:D
Edit: is it possible for the preview of logs to have the map in there somewhere?

Amazing, thanks!:D
Edit: is it possible for the preview of logs to have the map in there somewhere?
25
#25
0 Frags +
ShooshAmazing, thanks!:D
Edit: is it possible for the preview of logs to have the map in there somewhere?

I have gotten this question a lot so I think I just might make this the default. But typing --title after the link shows the map and log name in the preview.

[quote=Shoosh]Amazing, thanks!:D
Edit: is it possible for the preview of logs to have the map in there somewhere?[/quote]
I have gotten this question a lot so I think I just might make this the default. But typing --title after the link shows the map and log name in the preview.
26
#26
0 Frags +

Added steam message formatting because the way steam messages paste into discord looks really shitty.

This function is automatic, and you can disable it as an admin with

**source steamchat 0

.

Added steam message formatting because the way steam messages paste into discord looks really shitty.

This function is automatic, and you can disable it as an admin with [code]**source steamchat 0[/code].
27
#27
2 Frags +

This is epic, but ETF2L support would make it even more epic

This is epic, but ETF2L support would make it even more epic
28
#28
3 Frags +

The long-awaited fixes :D

- Log previews now show the log title by default.

- Logs.tf links can now have 1 of 3 options attached to them:
> med
> small
> killspread
These options are called by adding a double dash followed by the option name after the link. For example:

logs.tf/123123 --killspread

- Fixed log previews not being rendered correctly in some cases.

- Fixed "pls snipe" silently failing every once in a while.

- Added some super secret dev commands and hidden features (none of which can cause any harm if found).

- Internal change but I'll add it here anyway: switched from using PhantomJS (which was terribly outdated) to the much better and faster Chromium as the page renderer for previews.

The long-awaited fixes :D


- Log previews now show the log title by default.

- Logs.tf links can now have 1 of 3 options attached to them:
> med
> small
> killspread
These options are called by adding a double dash followed by the option name after the link. For example: [code]logs.tf/123123 --killspread[/code]

- Fixed log previews not being rendered correctly in some cases.

- Fixed "pls snipe" silently failing every once in a while.

- Added some super secret dev commands and hidden features (none of which can cause any harm if found).

- Internal change but I'll add it here anyway: switched from using PhantomJS (which was terribly outdated) to the much better and faster Chromium as the page renderer for previews.
29
#29
1 Frags +

And yes I am getting around to ETF2L support.

And yes I am getting around to ETF2L support.
30
#30
3 Frags +

I am aware of a bug in Payload's log combiner that majorly fucks shit up.

Will fix tomorrow I promise.

I am aware of a bug in Payload's log combiner that majorly fucks shit up.

Will fix tomorrow I promise.
1 2
Please sign in through STEAM to post a comment.