[Mod] Server Helper: In-game bot [v1.2]

Post Reply
User avatar
Tmanyo
Member
Posts: 196
Joined: Mon Sep 29, 2014 01:20
GitHub: Tmanyo
IRC: Tmanyo
In-game: tmanyo
Location: United States
Contact:

[Mod] Server Helper: In-game bot [v1.2]

by Tmanyo » Post

Description: This mod is a great public server tool and can be used as a chat moderator. It has many helpful features. There are also 4 settings included that can be changed in the config.lua that allow you to change the bots actions depending on the server rules. So if your server allowed foul language, you would go change the language_control setting to false. People could curse freely without punishment.

Features:
  • Language Control
  • Cap usage control
  • Time change control
  • Punctuation control
  • If a player dies in survival they will be asked if they want to be teleported to their bones.
  • If a player chats that they are stuck they will be asked if they want to be teleported to spawn.
  • Other friendly conversational abilities.
Note: Does not deal at all with IRC.

Credits:
NathanS21 helped figure out issues with the code.

License: LGPL 2.1

Download: V1.2
Github: https://github.com/Tmanyo/server_helper
Last edited by Tmanyo on Sat Oct 15, 2016 23:03, edited 4 times in total.
Tmanyo
http://www.rrhmsservers.ml
Servers I Host:
Tmanyo-Realism
Mods of mine that I don't totally hate:
Bank Accounts
T-Rating
Tmusic Player

User avatar
MineYoshi
Member
Posts: 5373
Joined: Wed Jul 08, 2015 13:20
Contact:

Re: [Mod] Server Helper: In-game bot

by MineYoshi » Post

+100!
Have a nice day! :D

User avatar
azekill_DIABLO
Member
Posts: 7507
Joined: Wed Oct 29, 2014 20:05
GitHub: azekillDIABLO
In-game: azekill_DIABLO
Location: OMICRON
Contact:

Re: [Mod] Server Helper: In-game bot

by azekill_DIABLO » Post

+1 too!
Gone, but not dead. Contact me on discord: azekill_DIABLO#6565
DMs are always open if you want to get in touch!

User avatar
cd2
Member
Posts: 562
Joined: Mon Jun 01, 2015 06:30
GitHub: cdqwertz
In-game: cd cd2
Location: Linux
Contact:

Re: [Mod] Server Helper: In-game bot

by cd2 » Post

Nice Idea!

I think I found a bug (I did not try this out but I read the code):

Code: Select all

<b> hi a how are you?
<a> HI I ALWAYS WRITE IN CAPS
<b> I usually dont write in caps
<a> LOL
<a> OMG
<a> I LOVE WRITING IN CAPS
<b> STOP
(kicked b)
<a> BYE B :D
To fix that you will need to use a table instead of a simple variable.

User avatar
Tmanyo
Member
Posts: 196
Joined: Mon Sep 29, 2014 01:20
GitHub: Tmanyo
IRC: Tmanyo
In-game: tmanyo
Location: United States
Contact:

Re: [Mod] Server Helper: In-game bot

by Tmanyo » Post

cd2 wrote:Nice Idea!

I think I found a bug (I did not try this out but I read the code):

Code: Select all

<b> hi a how are you?
<a> HI I ALWAYS WRITE IN CAPS
<b> I usually dont write in caps
<a> LOL
<a> OMG
<a> I LOVE WRITING IN CAPS
<b> STOP
(kicked b)
<a> BYE B :D
To fix that you will need to use a table instead of a simple variable.
Hmmm, I have tested it out on a public server and specifically told people to use all caps and it was said more than 5 times in a row by multiple people. When one person finally used it enough times they were kicked, I made sure and counted every ones messages. If that is what you are getting at. I don't believe there is a problem there. If you want to do further testing and get back with me on the results that would be great. :) I would also prefer a screenshot of all the text.
Tmanyo
http://www.rrhmsservers.ml
Servers I Host:
Tmanyo-Realism
Mods of mine that I don't totally hate:
Bank Accounts
T-Rating
Tmusic Player

User avatar
cd2
Member
Posts: 562
Joined: Mon Jun 01, 2015 06:30
GitHub: cdqwertz
In-game: cd cd2
Location: Linux
Contact:

Re: [Mod] Server Helper: In-game bot

by cd2 » Post

Tmanyo wrote:
cd2 wrote:Nice Idea!

I think I found a bug (I did not try this out but I read the code):

Code: Select all

<b> hi a how are you?
<a> HI I ALWAYS WRITE IN CAPS
<b> I usually dont write in caps
<a> LOL
<a> OMG
<a> I LOVE WRITING IN CAPS
<b> STOP
(kicked b)
<a> BYE B :D
To fix that you will need to use a table instead of a simple variable.
Hmmm, I have tested it out on a public server and specifically told people to use all caps and it was said more than 5 times in a row by multiple people. When one person finally used it enough times they were kicked, I made sure and counted every ones messages. If that is what you are getting at. I don't believe there is a problem there. If you want to do further testing and get back with me on the results that would be great. :) I would also prefer a screenshot of all the text.
The problem is that "b" will be kicked but he only used caps once. "a" wont be kicked.

User avatar
Tmanyo
Member
Posts: 196
Joined: Mon Sep 29, 2014 01:20
GitHub: Tmanyo
IRC: Tmanyo
In-game: tmanyo
Location: United States
Contact:

Re: [Mod] Server Helper: In-game bot

by Tmanyo » Post

cd2 wrote:
Tmanyo wrote:
cd2 wrote:Nice Idea!

I think I found a bug (I did not try this out but I read the code):

Code: Select all

<b> hi a how are you?
<a> HI I ALWAYS WRITE IN CAPS
<b> I usually dont write in caps
<a> LOL
<a> OMG
<a> I LOVE WRITING IN CAPS
<b> STOP
(kicked b)
<a> BYE B :D
To fix that you will need to use a table instead of a simple variable.
Hmmm, I have tested it out on a public server and specifically told people to use all caps and it was said more than 5 times in a row by multiple people. When one person finally used it enough times they were kicked, I made sure and counted every ones messages. If that is what you are getting at. I don't believe there is a problem there. If you want to do further testing and get back with me on the results that would be great. :) I would also prefer a screenshot of all the text.
The problem is that "b" will be kicked but he only used caps once. "a" wont be kicked.
Ok I have found the issue and will fix it. :) Thank you for bringing it to my attention.
Tmanyo
http://www.rrhmsservers.ml
Servers I Host:
Tmanyo-Realism
Mods of mine that I don't totally hate:
Bank Accounts
T-Rating
Tmusic Player

User avatar
Tmanyo
Member
Posts: 196
Joined: Mon Sep 29, 2014 01:20
GitHub: Tmanyo
IRC: Tmanyo
In-game: tmanyo
Location: United States
Contact:

Re: [Mod] Server Helper: In-game bot

by Tmanyo » Post

Version 1.1 Release!
Change-log -------
Fixed the caps control and language control variable issue.
  • A player could use all caps 4 times in a row and another player could use all caps once and the second player would be kicked.
  • So now it keeps track of each player.
Tmanyo
http://www.rrhmsservers.ml
Servers I Host:
Tmanyo-Realism
Mods of mine that I don't totally hate:
Bank Accounts
T-Rating
Tmusic Player

User avatar
Krock
Developer
Posts: 4650
Joined: Thu Oct 03, 2013 07:48
GitHub: SmallJoker
Location: Switzerland
Contact:

Re: [Mod] Server Helper: In-game bot [v1.1]

by Krock » Post

Is there any way to disable these comments when they're too annoying in-game? I've seen this mod on a server and it wasn't helpful to me at all. It rather made it more complicated to read the chat logs. Also while chatting it notified me to explain the matter with the message like "need help?" or to not use caps when I began with the nickname "YuGiOhJCJ, ...". Another time it printed my IP on my screen - just - why?
It is a nice idea to make the life of server admins easier but in its current state I'd rather want to mute these messages.
Look, I programmed a bug for you. >> Mod Search Engine << - Mods by Krock - DuckDuckGo mod search bang: !mtmod <keyword here>

User avatar
Tmanyo
Member
Posts: 196
Joined: Mon Sep 29, 2014 01:20
GitHub: Tmanyo
IRC: Tmanyo
In-game: tmanyo
Location: United States
Contact:

Re: [Mod] Server Helper: In-game bot [v1.1]

by Tmanyo » Post

An easy way to disable this is to go the configure button on the client that is running the server and to deselect server_helper. There is also a config lua file that has settings that can be set to false, which when set certain things are no longer checked for. I am aware of the IP bug and I am sorry you are unhappy. I will try to fix the issues as soon as possible. :)

Edit:
The reason it told you to not use caps while typing the name was that many people try to "get around" the caps issue with putting a space or some other character in between the caps.
Tmanyo
http://www.rrhmsservers.ml
Servers I Host:
Tmanyo-Realism
Mods of mine that I don't totally hate:
Bank Accounts
T-Rating
Tmusic Player

User avatar
Nathan.S
Member
Posts: 1147
Joined: Wed Sep 24, 2014 17:47
GitHub: NathanSalapat
IRC: NathanS21
In-game: NathanS21
Location: Bigsby Texas
Contact:

Re: [Mod] Server Helper: In-game bot [v1.1]

by Nathan.S » Post

It would be easy enough to make the messages about using caps, etc to only be shown to the player that used them, using chat_send_player rather than chat_send_all.
I record Minetest videos, Mod reviews, Modding tutorials, and Lets plays.
Check out my website, and brand new Minetest Modding Course

User avatar
Krock
Developer
Posts: 4650
Joined: Thu Oct 03, 2013 07:48
GitHub: SmallJoker
Location: Switzerland
Contact:

Re: [Mod] Server Helper: In-game bot [v1.1]

by Krock » Post

Tmanyo wrote:An easy way to disable this is to go the configure button on the client that is running the server and to deselect server_helper.
Bad luck, I'm not the server admin. I'm asking this from the perspective of a regular player on a server who would like to disable these messages just for himself.
Nathan.S wrote:[..] using chat_send_player rather than chat_send_all.
In my opinion, this could be also done for the greeting message after "hello" and rule notifications.
Look, I programmed a bug for you. >> Mod Search Engine << - Mods by Krock - DuckDuckGo mod search bang: !mtmod <keyword here>

User avatar
Tmanyo
Member
Posts: 196
Joined: Mon Sep 29, 2014 01:20
GitHub: Tmanyo
IRC: Tmanyo
In-game: tmanyo
Location: United States
Contact:

Re: [Mod] Server Helper: In-game bot [v1.1]

by Tmanyo » Post

Krock wrote:
Tmanyo wrote:An easy way to disable this is to go the configure button on the client that is running the server and to deselect server_helper.
Bad luck, I'm not the server admin. I'm asking this from the perspective of a regular player on a server who would like to disable these messages just for himself.

Just out of curiosity, what server was this? I would like to talk with the administrator, and see what he/she thinks for further analysis.
Tmanyo
http://www.rrhmsservers.ml
Servers I Host:
Tmanyo-Realism
Mods of mine that I don't totally hate:
Bank Accounts
T-Rating
Tmusic Player

User avatar
Krock
Developer
Posts: 4650
Joined: Thu Oct 03, 2013 07:48
GitHub: SmallJoker
Location: Switzerland
Contact:

Re: [Mod] Server Helper: In-game bot [v1.1]

by Krock » Post

Tmanyo wrote:Just out of curiosity, what server was this? I would like to talk with the administrator, and see what he/she thinks for further analysis.
Erm. Your own server actually, with Vault as admin.
Last edited by Krock on Tue Jun 12, 2018 14:30, edited 1 time in total.
Look, I programmed a bug for you. >> Mod Search Engine << - Mods by Krock - DuckDuckGo mod search bang: !mtmod <keyword here>

User avatar
ManElevation
Member
Posts: 896
Joined: Tue Aug 02, 2016 22:04
GitHub: ManElevation
IRC: ManElevation
In-game: ManElevation
Location: Madrid,Spain

Re: [Mod] Server Helper: In-game bot [v1.1]

by ManElevation » Post

wow this is awesome but im using this on my server, i dont really like the "want to get teleported to your bones?"
My Public Mods! Discord: Rottweiler Games#3368

User avatar
Tmanyo
Member
Posts: 196
Joined: Mon Sep 29, 2014 01:20
GitHub: Tmanyo
IRC: Tmanyo
In-game: tmanyo
Location: United States
Contact:

Re: [Mod] Server Helper: In-game bot [v1.1]

by Tmanyo » Post

ManElevation wrote:wow this is awesome but im using this on my server, i dont really like the "want to get teleported to your bones?"
Is there a bug, or you just don't like the feature?
Tmanyo
http://www.rrhmsservers.ml
Servers I Host:
Tmanyo-Realism
Mods of mine that I don't totally hate:
Bank Accounts
T-Rating
Tmusic Player

testingsquid
New member
Posts: 1
Joined: Tue Jun 12, 2018 12:57

Re: [Mod] Server Helper: In-game bot [v1.2]

by testingsquid » Post

hmm, this hasn't been touched in a long time :(..

I really like this idea / concept ..
admins can leave their server and the bot controls the players :))
I'm a bit imaginative but it would be awesome if this could detect normal players flying / fast / no clip* on a survival server and punish them. this could be done with some code from existing anticheat mods which use the game engines sensors to distinguish hacks / no hacks.

also, this bot could also have special commands like "~bot give all cheesestick" or "~bot broadcast Don't forget to leave feedback!" a bit rough but you get what I mean. its also a bit off the "server-helper" idea but I've seen in-game bots doing this before :).

*with a setting to turn it on/off incase of creative mode servers
\

User avatar
Tmanyo
Member
Posts: 196
Joined: Mon Sep 29, 2014 01:20
GitHub: Tmanyo
IRC: Tmanyo
In-game: tmanyo
Location: United States
Contact:

Re: [Mod] Server Helper: In-game bot [v1.2]

by Tmanyo » Post

testingsquid wrote:hmm, this hasn't been touched in a long time :(..

I really like this idea / concept ..
admins can leave their server and the bot controls the players :))
I'm a bit imaginative but it would be awesome if this could detect normal players flying / fast / no clip* on a survival server and punish them. this could be done with some code from existing anticheat mods which use the game engines sensors to distinguish hacks / no hacks.

also, this bot could also have special commands like "~bot give all cheesestick" or "~bot broadcast Don't forget to leave feedback!" a bit rough but you get what I mean. its also a bit off the "server-helper" idea but I've seen in-game bots doing this before :).

*with a setting to turn it on/off incase of creative mode servers
I am considering returning to this old project to fix bugs and make the overall user and admin experience better. I feel that a graphical user interface for admins would make changing settings easier. I will also take other feature suggestions. I may end up making this mod from scratch while keeping the forum thread.
Tmanyo
http://www.rrhmsservers.ml
Servers I Host:
Tmanyo-Realism
Mods of mine that I don't totally hate:
Bank Accounts
T-Rating
Tmusic Player

Post Reply

Who is online

Users browsing this forum: shanish2 and 67 guests