Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/butlerx/butlerbot-popping


https://github.com/butlerx/butlerbot-popping

Last synced: 15 days ago
JSON representation

Awesome Lists containing this project

README

        

# popping

This plugin allows users to get links to popping related content

## Install

```
yarn add butlerbot-popping
```

Create a file in the plugin dir as follows

```js
import popping from 'butlerbot-pooping';
export default pop({
development: {
channels: ['#butlerbot'],
channelsToExclude: [],
channelsToJoin: ['#butlerbot'],
reddit: {
userAgent: 'irc-bot',
refreshToken: 'Will Need to get your own',
clientId: 'ZZifBCPKv9cUOQ',
clientSecret: 'Get it your self',
},
},

production: {
channels: ['#butlerbot'],
channelsToExclude: [],
channelsToJoin: ['#butlerbot'],
reddit: {
userAgent: 'irc-bot',
refreshToken: 'Will Need to get your own',
clientId: 'ZZifBCPKv9cUOQ',
clientSecret: 'Get it your self',
},
},
});
```
## Commands
- **!pop ** - gives a random link to something popping related
- **!pop [link]** - adds link to list of links

## Usage
### pop
To get a random link:

```
!pop
NSFW!(most likely) https://www.youtube.com/watch?v=rGBdeQfcjLU
```

To add a link:

```
!pop https://www.youtube.com/watch?v=rGBdeQfcjLU
```

## Configuration
# channels
This option contains a list of channels that the plugin should respond to commands it defines.

# channelsToExclude
This is an array of strings that the command should ignore commands in. Only used if the channels option is set to 'all'

# channelsToJoin
This is an array of channels that the bot should join. The cards against humanity plugin doesn't support playing the games in multiple channels, so this should only contain one entry.