Skip to content

Commit

Permalink
update to github
Browse files Browse the repository at this point in the history
  • Loading branch information
brokenedtzjs committed Jan 30, 2024
1 parent e5356ea commit b08f5d1
Show file tree
Hide file tree
Showing 3 changed files with 34 additions and 9 deletions.
17 changes: 8 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,30 +39,29 @@ const client = ({

const starboard = new Starboard({
client: client,
})
module.exports = starboard;
});
client.starboard = starboard;

module.exports = client;
```
- starboard.js
```js
const client = require('your bot.js folder');
const client = require('your bot.js');
const { Events } = require('discord.js');
const starboard = require('your bot.js folder');

client.on(Events.MessageReactionAdd, (reaction) => {
starboard.listener(reaction);
client.starboard.listener(reaction);
});
client.on(Events.MessageReactionRemove, (reaction) => {
starboard.listener(reaction);
client.starboard.listener(reaction);
});
```

## Join our Discord server
<a href="https://discord.gg/qpT2AeYZRN" target="_blank"><img alt="Discord" src="https://img.shields.io/discord/984857299858382908?label=CyraTeam&logo=discord"></a>

## Contributor
<div align="center">
<a href="https://github.com/brokenedtzjs">brokenedtzjs</a>
</div>
<div align="center"><a href="https://github.com/brokenedtzjs">brokenedtzjs</a></div>

## License & Copyright
```
Expand Down
13 changes: 13 additions & 0 deletions lib/error/StarboardError.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
'use strict';

/*!
* ignore
*/

class StarboardError extends Error { }

Object.defineProperty(StarboardError.prototype, 'name', {
value: 'StarboardError'
});

module.exports = StarboardError;
13 changes: 13 additions & 0 deletions lib/error/messageError.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
'use strict';

/*!
* ignore
*/

class MessageError extends Error { }

Object.defineProperty(MessageError.prototype, 'name', {
value: 'MessageError'
});

module.exports = MessageError;

0 comments on commit b08f5d1

Please sign in to comment.