• If you need help or want to discuss things, you now can also join us on our Discord Server!
  • A first preview of the unlimited version of SinusBot can be found in the Upcoming Changes thread. A version for Windows will follow, but we don't have a release date, yet.

EN [Request]A simple script for writing to a database

Tyloendis

Helping Hand
An Example:
I have a chess competition on my TS3. Anyone who would like to participate, would write "!chess" command to the bot.
And I would like to see who wrote this command.
Oh and it would be nice if only users with a certain servergroups could use this command.
 

r3flex

Active Member
Contributor
Pretty easy, event on command which matches word "!chess" then check if client is in x group, if so add the nick into the DB, can be used as local database using store module.
 

r3flex

Active Member
Contributor
And then the nicks can be displayed on channel, like create channel e.g call it 'chess players' then specify the channel ID on the website, and the script will loop through each DB entry and display it on channel :)
 

Tyloendis

Helping Hand
Isn't it my favourite script writer?
Nice thinking, but it would be more convinient to display the names as a channel description.
But yeah, this is what I thought.
 
Top