[Developement] NimdaTS3 - A real modular teamspeak 3 Bot

Is this bot amzaing

  • Hell yeah

    Votes: 46 46.9%
  • Fuck no

    Votes: 12 12.2%
  • I cant get it to work because I'm an idiot

    Votes: 13 13.3%
  • I'm 12 what is this?

    Votes: 36 36.7%
  • Are you the real DrWhat from UC?

    Votes: 18 18.4%

  • Total voters
    98

tagKnife

Well-Known Member
Oct 2, 2015
343
270
146
I Have php and i get this error

root@vps:~/NimdaTS3-0.9.0# php ./start.php
PHP Fatal error: Uncaught Error: Class 'Config\TeamSpeak' not found in /root/NimdaTS3-0.9.0/start.php:8
Stack trace:
#0 {main}
thrown in /root/NimdaTS3-0.9.0/start.php on line 8
What version of php are you running?
 

scann

Member
Mar 1, 2016
19
2
35
Here
9e5396dc3ca64cd1a6dfbcb83b4f8be7.png
 

tagKnife

Well-Known Member
Oct 2, 2015
343
270
146
hmmm, It's perfectly valid syntax... I've tested it on PHP 5.5, 5.6 and 7.0 and soon 7.1 and it all works here :/
 

tagKnife

Well-Known Member
Oct 2, 2015
343
270
146
hm what can i do? ;(
ok i tested it, and it wors perfectly fine on PHP 5.6 but php 5.5 is for some reason erroring out on a perfectly valid line...

hO1q6bP.png


Update: becuase of this function function sendOutput($text, ...$params)
'...' Overflow params are not supported in 5.5
PHP 5.5 support is dropped. to run this bot you must use PHP 5.6 or above. php7 recommended.
 
Last edited:

kalle

high minded
Contributor
Oct 28, 2015
411
253
178
I Have php and i get this error

root@vps:~/NimdaTS3-0.9.0# php ./start.php
PHP Fatal error: Uncaught Error: Class 'Config\TeamSpeak' not found in /root/NimdaTS3-0.9.0/start.php:8
Stack trace:
#0 {main}
thrown in /root/NimdaTS3-0.9.0/start.php on line 8
Do you have that files download from github? I think you just copy/paste @MAJIID s words and run it.
 

MAJIID

Member
Oct 14, 2015
19
5
50
@DrWhat can you add multipe triger because i need to use, event (detect vpn on connect) and commande !addvpn to add custom ip to banned vpn list
 

tagKnife

Well-Known Member
Oct 2, 2015
343
270
146
@DrWhat can you add multipe triger because i need to use, event (detect vpn on connect) and commande !addvpn to add custom ip to banned vpn list
you can create a plugin that listens for !addvpn and add and ip to the list
Code:
{
  "name": "AddVpn",
  "author": "MAJID",
  "description": "Add a VPN ip to the vpn list",
  "version": "1.0",
  "triggers": [
      "!addvpn"
  ],
  "usage": "!addvpn [ip]",
}

then the plugin can be

Code:
namespace Plugin;

use App\Plugin;

/**
* Class AddVpn
*/
class AddVpn extends Plugin implements PluginContract
{

    /**
     * @return sendOutput
     */
    public function isTriggered()
    {
        if (!isset($this->info['text'])) {
            $this->sendOutput($this->CONFIG['usage']);

            return;
        }

        // logic to add ip to list
    }
}
 

tagKnife

Well-Known Member
Oct 2, 2015
343
270
146
but currently we can't do all on same plugin ? trigger event and trigger Cmd ?
because i have already a plugin http://ge.tt/2EEduad2
no, Events must be separate plugins, 1 for each event.
Command based plugins can listen for multiple comands.

multiple plugins can listen for the same event, but one plugin can not listen to multiple events.
 

MAJIID

Member
Oct 14, 2015
19
5
50
can you add timer for plugins, example:
HTML:
"triggers": [
"timer"
],
"timer": "60",

and every 60 sec exec function
 
Top