fix typo on color for status command

This commit is contained in:
Ben Harris 2017-05-01 10:19:55 -04:00
parent ec1fcff534
commit 93cc7cab8f
3 changed files with 77 additions and 21 deletions

72
gallows.txt Normal file
View File

@ -0,0 +1,72 @@
_______
|/ |
|
|
|
|
|
_|___
==
_______
|/ |
| (_)
|
|
|
|
_|___
==
_______
|/ |
| (_)
| |
|
|
|
_|___
==
_______
|/ |
| (_)
| |
| |
|
|
_|___
==
_______
|/ |
| (_)
| |
| |
| /
|
_|___
==
_______
|/ |
| (_)
| |
| |
| / \
|
_|___
==
_______
|/ |
| (_)
| \|
| |
| / \
|
_|___
==
_______
|/ |
| (_)
| \|/
| |
| / \
|
_|___

View File

@ -120,7 +120,7 @@ final class Debug
$embed = self::$bot->factory(Embed::class, [
'title' => 'Benbot status',
'thumbnail' => ['url' => self::$bot->avatar],
'color' => EmbedColor::BLUE,
'color' => EmbedColors::BLUE,
'fields' => [
['name' => 'Server Uptime'
,'value' => Utils::secondsConvert($vitals->Uptime)

View File

@ -6,21 +6,13 @@ use BenBot\Utils;
final class Hangman
{
private static $bot;
private static $gallows;
public static function register(&$that)
{
self::$bot = $that;
self::$bot->hangman['gallows'] = "
_______
|/ |
| (_)
| \|/
| |
| / \
|
_|___
";
self::$gallows = explode("==", file_get_contents(self::$bot->dir . "/gallows.txt"));
self::$bot->registerCommand('hangman', [__CLASS__, 'startGame'], [
'description' => 'play hangman. everyone in the channel can play',
@ -30,6 +22,7 @@ final class Hangman
}
public static function isActive($msg)
{
$gameid = $msg->channel->id;
@ -59,16 +52,7 @@ final class Hangman
$gameid = $msg->channel->id;
self::$bot->hangman[$gameid] = [
'active' => false,
'gallows' => '
_______
|/ |
|
|
|
|
|
_|___
'
'state' => 0,
];
self::$bot->hangman['readygame'] = [
'originator' => $msg->author,