Ejemplo n.º 1
0
 public function main()
 {
     $RussianRoulette = new RussianRoulette($this->db, $this->Message->Chat->id, $this->Message->User->user_id);
     $RussianRoulette->reload();
     $out = emoji(0x1f52b) . " `Revolver reloaded.`" . "\n" . "\nThere are *six* chambers, and *one* bullet." . "\nUse /trigger to play.";
     Telegram::talk($this->Message->Chat->id, $out);
 }
Ejemplo n.º 2
0
 public function main()
 {
     $RussianRoulette = new RussianRoulette($this->db, $this->Message->Chat->id, $this->Message->User->user_id);
     if ($RussianRoulette->isLoaded()) {
         if ($RussianRoulette->trigger()) {
             $out = emoji(0x1f4a5) . emoji(0x1f52b) . "\n" . "\n" . emoji(0x2620) . " *" . $this->Message->User->getName() . "* killed themselves." . "\n /reload to play again.";
             Telegram::talkForced($this->Message->Chat->id, $out);
             //Telegram::kick($this->Message->Chat->id, $this->Message->User->user_id);
         } else {
             $out = $this->getFace() . emoji(0x1f52b) . " `Click.`";
             Telegram::talk($this->Message->Chat->id, $out);
         }
     } else {
         $out = emoji(0x1f449) . " The revolver isn't loaded. Use /reload first.";
         Telegram::talk($this->Message->Chat->id, $out);
     }
 }