gries/pokebot

Slackbot 命令以集成 Pokemath 到 Slack

dev-master 2015-12-06 12:03 UTC

This package is auto-updated.

Last update: 2024-09-16 21:50:21 UTC


README

Slackbot 集成以使用 Pokemath。

安装

Pokebot 可以通过 Composer 安装

composer require "gries/pokebot"

用法

运行机器人

<?php

use gries\Pokebot\Command\PokemathCommand;
use PhpSlackBot\Bot;

require_once __DIR__.'/../vendor/autoload.php';

$bot = new Bot();
$bot->setToken('token');
$bot->loadCommand(new PokemathCommand());
$bot->run();

在 Slack 中使用机器人

demo

作者

许可证

有关完整的版权和许可信息,请参阅与源代码一起分发的 LICENSE 文件。