PHPackages                             dholmes/discord-bot-builder - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. dholmes/discord-bot-builder

AbandonedArchivedLibrary[Utility &amp; Helpers](/categories/utility)

dholmes/discord-bot-builder
===========================

08PHP

Since Oct 28Pushed 9y ago1 watchersCompare

[ Source](https://github.com/danielholmes/discord-bot-builder)[ Packagist](https://packagist.org/packages/dholmes/discord-bot-builder)[ RSS](/packages/dholmes-discord-bot-builder/feed)WikiDiscussions master Synced today

READMEChangelogDependenciesVersions (1)Used By (0)

Discord Bot Builder
===================

[](#discord-bot-builder)

A framework to help build a [Discord](https://discordapp.com/) bot and route incoming messages. Features include:

- Restrict commands to particular channels
- Restrict commands to particular roles
- Respond to various message properties only including:
    - Private messages
    - Mentions
    - Messages containing particular phrases
    - Messages from certain people

It's a work in progress, in particular it could do with a good DSL in front of the matchers in order make specifying a bot much prettier on the eyes.

Development
-----------

[](#development)

```
php composer.phar install

```

Running
-------

[](#running)

See `examples`

1. Create your bot on the Discord Developer Site
2. Copy your bot client/application id
3. Go to [https://discordapp.com/oauth2/authorize?client\_id=CLIENT\_ID\_GOES\_HERE&amp;scope=bot&amp;permissions=0](https://discordapp.com/oauth2/authorize?client_id=CLIENT_ID_GOES_HERE&scope=bot&permissions=0)You can set permissions for the bot here. Permissions can be found on the developer pages under permission.
4. Select server and click authorize.
5. `php examples/run.php [your_bot_token] [bot_client_id]`

Included in the example is an upstart script. To run on a Ubuntu server:

```
cp examplebot.conf /etc/init
# Change paths in config to match your installation
vi /etc/init/examplebot.conf
sudo service examplebot restart

```

Running Tests
-------------

[](#running-tests)

- All: `vendor/bin/phpunit`
- Individual: `vendor/bin/phpunit tests/DiscordBotBuilder/Command/HelpCommandTest.php`

Utils
-----

[](#utils)

See info about the bot's current servers:

```
php utils/debug-info.php [discord_token]

```

###  Health Score

20

—

LowBetter than 13% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity41

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

### Community

Maintainers

![](https://www.gravatar.com/avatar/8a14e02f68a850bfacc411509a093d8617a4226f0bbcc428525fd44693148ea9?d=identicon)[danielholmes](/maintainers/danielholmes)

---

Top Contributors

[![danielholmes](https://avatars.githubusercontent.com/u/349833?v=4)](https://github.com/danielholmes "danielholmes (2 commits)")

### Embed Badge

![Health badge](/badges/dholmes-discord-bot-builder/health.svg)

```
[![Health](https://phpackages.com/badges/dholmes-discord-bot-builder/health.svg)](https://phpackages.com/packages/dholmes-discord-bot-builder)
```

###  Alternatives

[wbraganca/yii2-nested-set-behavior

This extension allows you to get functional for nested set trees.

229.4k](/packages/wbraganca-yii2-nested-set-behavior)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
