test > match
This commit is contained in:
		@@ -42,7 +42,7 @@ bot.on('motd', (e) => {
 | 
			
		||||
 | 
			
		||||
bot.on('message', (e) => {
 | 
			
		||||
  trigger.trigger.forEach((entry,i,a) => {
 | 
			
		||||
    if(e.message.match(entry.call)) {
 | 
			
		||||
    if(entry.call.test(e.message)) {
 | 
			
		||||
      lib.getUserlevel(e, (cb) => {
 | 
			
		||||
        if(cb.level >= entry.level)
 | 
			
		||||
          entry.func(e);
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user