. and / as cmd
This commit is contained in:
		@@ -10,7 +10,7 @@ class tg {
 | 
			
		||||
    this.options.polling = options.polling || true;
 | 
			
		||||
    this.client = new tgapi(this.options.token, this.options);
 | 
			
		||||
 | 
			
		||||
    this.client.onText(/.*/, msg => {
 | 
			
		||||
    this.client.on('message', msg => {
 | 
			
		||||
      if (msg.date >= (~~(Date.now() / 1000) - 10)) {
 | 
			
		||||
        msg.text = msg.text.replace(/^\//g, "\.");
 | 
			
		||||
        this.emit('data', ['message', this.reply(msg)]);
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user