mirror of
				https://github.com/Mibew/mibew_slack.git
				synced 2025-11-03 20:05:14 +03:00 
			
		
		
		
	Issue #3 - Fixed issue with tabing
This commit is contained in:
		
							parent
							
								
									dd5b8e863e
								
							
						
					
					
						commit
						882c35b0ee
					
				@ -28,7 +28,7 @@ class Plugin extends \Mibew\Plugin\AbstractPlugin implements \Mibew\Plugin\Plugi
 | 
			
		||||
        return true;
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
        public function run()
 | 
			
		||||
    public function run()
 | 
			
		||||
    {
 | 
			
		||||
        $dispatcher = EventDispatcher::getInstance();
 | 
			
		||||
        $dispatcher->attachListener(Events::THREAD_CREATE, $this, 'sendSlackNotification');
 | 
			
		||||
@ -37,9 +37,9 @@ class Plugin extends \Mibew\Plugin\AbstractPlugin implements \Mibew\Plugin\Plugi
 | 
			
		||||
    public function sendSlackNotification(&$args)
 | 
			
		||||
    {
 | 
			
		||||
        $settings = [
 | 
			
		||||
            'username' => $this->config['username'],
 | 
			
		||||
            'channel' => '#' . $this->config['channel'],
 | 
			
		||||
            'link_names' => true
 | 
			
		||||
            'username'      => $this->config['username'],
 | 
			
		||||
            'channel'       => '#' . $this->config['channel'],
 | 
			
		||||
            'link_names'    => true
 | 
			
		||||
        ];
 | 
			
		||||
 | 
			
		||||
        $client = new Client($this->config['slack_url'], $settings);
 | 
			
		||||
 | 
			
		||||
		Loading…
	
		Reference in New Issue
	
	Block a user