Upvote Upvoted 20 Downvote Downvoted
Logs.tf Discord bot
1
#1
0 Frags +

Hey.
I've recently made a discord bot that previews logs.tf links in chat, showing who won the game, how many kills each team had, etc. It has a really easy syntax which allows commands to be invoked easily using double brackets [[like this]].

Here's a list of the current commands:

[[<logs.tf link>]]
shows a preview of the logs linked
Example: [[http://logs.tf/1234567]]

[[search <search stuff...>]]
searches for logs that meet the requirements specified. Examples of some search filters that can be used:
title=<log title>
player=<steam id of a player in the logs>
Example: [[search title=pugchamp player=1234567890]]

[[<logs.tf link>]] --d
shows a detailed preview of the logs linked
[[http://logs.tf/1234567]] --d

And finally, posting a link without brackets will just show you a small preview.

Here's the invite link: https://discordapp.com/oauth2/authorize?client_id=425821465204752394&permissions=392256&scope=bot
The bot doesn't require any server-editing perms to be able to work, so there's absolutely no risk in adding it.

Enjoy!

EDIT: If you have any feedback, post it here. It would be very much appreciated!

Hey.
I've recently made a discord bot that previews logs.tf links in chat, showing who won the game, how many kills each team had, etc. It has a really easy syntax which allows commands to be invoked easily using double brackets [[like this]].

Here's a list of the current commands:

[[<logs.tf link>]]
shows a preview of the logs linked
Example: [[http://logs.tf/1234567]]

[[search <search stuff...>]]
searches for logs that meet the requirements specified. Examples of some search filters that can be used:
title=<log title>
player=<steam id of a player in the logs>
Example: [[search title=pugchamp player=1234567890]]

[[<logs.tf link>]] --d
shows a detailed preview of the logs linked
[[http://logs.tf/1234567]] --d

And finally, posting a link without brackets will just show you a small preview.

Here's the invite link: https://discordapp.com/oauth2/authorize?client_id=425821465204752394&permissions=392256&scope=bot
The bot doesn't require any server-editing perms to be able to work, so there's absolutely no risk in adding it.

Enjoy!

EDIT: If you have any feedback, post it here. It would be very much appreciated!
2
#2
0 Frags +

This is an awesome little tool, good work man haha yes :)

This is an awesome little tool, good work man haha yes :)
3
#3
1 Frags +

looking good. will give it a shot later!

looking good. will give it a shot later!
4
#4
4 Frags +

i think it'd be nice if you didn't have to search by player id, that ends up being more work to aquire than just going to the logs.tf page itself.

or perhaps, make a one time setup command, where you provide the player id and an alias, and then be able to use the alias to call for that players logs every time.

like
me: [[add player=xxxxxxxxxxx alias=asdf]]
logs.tf bot: asdf added to database
me: [[search player=asdf]]
logs.tf bot: *returns first few logs of asdf*

i think it'd be nice if you didn't have to search by player id, that ends up being more work to aquire than just going to the logs.tf page itself.

or perhaps, make a one time setup command, where you provide the player id and an alias, and then be able to use the alias to call for that players logs every time.

like
me: [[add player=xxxxxxxxxxx alias=asdf]]
logs.tf bot: asdf added to database
me: [[search player=asdf]]
logs.tf bot: *returns first few logs of asdf*
5
#5
1 Frags +

The reason I have it search by player ID is because its safer and easier. I will add a search by alias option in the future though.

EDIT: Easier as in easier to code lol

The reason I have it search by player ID is because its safer and easier. I will add a search by alias option in the future though.

EDIT: Easier as in easier to code lol
6
#6
2 Frags +

UPDATE: New invite link: https://discordapp.com/api/oauth2/authorize?client_id=443189988130291712&permissions=51200&scope=bot

Migrated the bot due to hosting issues, but this new version is bigger and badder than ever. Log previews are now snapshots of the actual logs so you can see stats without having to click a link. It also comes with a remote rcon command which you can figure out how to use by dming the bot.

And it generates steam connect links when you type a server's connect info in chat. Shit's packed.

Player log search has been removed primarily due to the fact that it was kinda useless.

UPDATE: New invite link: https://discordapp.com/api/oauth2/authorize?client_id=443189988130291712&permissions=51200&scope=bot

Migrated the bot due to hosting issues, but this new version is bigger and badder than ever. Log previews are now snapshots of the actual logs so you can see stats without having to click a link. It also comes with a remote rcon command which you can figure out how to use by dming the bot.

And it generates steam connect links when you type a server's connect info in chat. Shit's packed.

Player log search has been removed primarily due to the fact that it was kinda useless.
Please sign in through STEAM to post a comment.