This repository has been archived by the owner on Nov 30, 2023. It is now read-only.
forked from RemyK888/discord-together
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit c1797ae
Showing
9 changed files
with
814 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
Copyright 2021 RemyK | ||
|
||
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: | ||
|
||
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. | ||
|
||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,102 @@ | ||
<center> | ||
<h1><strong>Discord Together</strong></h1> | ||
|
||
[![NPM](https://nodei.co/npm/discord-together.png)](https://nodei.co/npm/discord-together/) | ||
|
||
[![forthebadge](https://forthebadge.com/images/badges/made-with-javascript.svg)](https://forthebadge.com) | ||
</center> | ||
|
||
# 🔩 Installation | ||
## Install [discord-together](https://www.npmjs.com/package/discord-together) | ||
``` | ||
$ npm install discord-together@latest | ||
``` | ||
|
||
## Install [discord.js](https://www.npmjs.com/package/discord.js) | ||
``` | ||
$ npm install discord.js | ||
``` | ||
|
||
# 🔑 Features | ||
- Easy to use | ||
- Multiple server | ||
- Discord support | ||
- Lightweight | ||
|
||
### <u>Documentation ➩ coming soon !</u> | ||
|
||
<br/> | ||
|
||
# 💻 Code example | ||
This is a simple example of code using this package. | ||
|
||
```js | ||
const Discord = require('discord.js'); | ||
const client = new Discord.Client(); | ||
const { DiscordTogether } = require('discord-together'); | ||
|
||
client.discordTogether = new DiscordTogether(client, { | ||
token: 'your token' | ||
}); | ||
|
||
client.on('message', async message => { | ||
if (message.content === 'start') { | ||
client.discordTogether.createTogetherCode(message.member.voice.channelID, 'youtube').then(async invite => { | ||
return message.channel.send(`[LINK](${invite.code})`); | ||
}); | ||
}; | ||
}); | ||
|
||
client.login('your token'); | ||
``` | ||
<br/> | ||
|
||
# 🔧 Options | ||
- Youtube | ||
```js | ||
client.discordTogether.createTogetherCode(message.member.voice.channelID, 'youtube').then(async invite => { | ||
return message.channel.send(`[LINK](${invite.code})`); | ||
}); | ||
``` | ||
|
||
- Poker | ||
```js | ||
client.discordTogether.createTogetherCode(message.member.voice.channelID, 'poker').then(async invite => { | ||
return message.channel.send(`[LINK](${invite.code})`); | ||
}); | ||
``` | ||
|
||
- Betrayal | ||
```js | ||
client.discordTogether.createTogetherCode(message.member.voice.channelID, 'betrayal').then(async invite => { | ||
return message.channel.send(`[LINK](${invite.code})`); | ||
}); | ||
``` | ||
|
||
- Fishing | ||
```js | ||
client.discordTogether.createTogetherCode(message.member.voice.channelID, 'fishing').then(async invite => { | ||
return message.channel.send(`[LINK](${invite.code})`); | ||
}); | ||
``` | ||
|
||
|
||
# 🌌 Example of bots made with Discord Together | ||
- [Discord Together Bot](https://github.com/RemyK888/discord-together-bot) by [RemyK](https://github.com/RemyK888) | ||
|
||
# 🚀 Others | ||
|
||
**This package is under MIT license.** | ||
|
||
*Note: This package is not affiliated with Discord or YouTube.* | ||
|
||
If you have any problems, you can contact: `RemyK#3876`. | ||
**Discord server:** [Server Link](https://discord.gg/GK8jFXkybz) | ||
|
||
[**Github repository**](https://github.com/RemyK888/discord-together) | ||
|
||
<hr> | ||
|
||
## **Made with ❤ by RemyK** | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
module.exports = { | ||
DiscordTogether: require('./src/DiscordTogether.js'), | ||
version: require('./package.json').version | ||
} |
Oops, something went wrong.