This repository has been archived by the owner on May 24, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
- Loading branch information
1 parent
39b9dbe
commit f750e2c
Showing
122 changed files
with
3,778 additions
and
3,776 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 |
---|---|---|
|
@@ -8,33 +8,33 @@ jobs: | |
format: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: "Checkout Repository" | ||
- name: 'Checkout Repository' | ||
uses: actions/checkout@v2 | ||
|
||
- name: "Setup Node.js" | ||
- name: 'Setup Node.js' | ||
uses: actions/setup-node@v1 | ||
with: | ||
node-version: "16.x" | ||
node-version: '16.x' | ||
|
||
- name: "Install Dependencies" | ||
run: "corepack enable; yarn; yarn install" | ||
- name: 'Install Dependencies' | ||
run: 'corepack enable; yarn; yarn install' | ||
|
||
- name: "Format Code" | ||
run: "yarn format" | ||
- name: 'Format Code' | ||
run: 'yarn format' | ||
|
||
- name: Create pull request | ||
uses: peter-evans/[email protected] | ||
env: | ||
ACTIONS_ALLOW_UNSECURE_COMMANDS: true | ||
with: | ||
token: ${{ secrets.WORKFLOW_TOKEN }} | ||
commit-message: "style: auto format" | ||
committer: "github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>" | ||
author: "github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>" | ||
commit-message: 'style: auto format' | ||
committer: 'github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>' | ||
author: 'github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>' | ||
|
||
title: Format Code | ||
body: | | ||
This PR was created by the `format` workflow. | ||
It has formatted the code using the `yarn format` command. | ||
Please review the changes and merge the PR if everything looks good. | ||
labels: "format" | ||
labels: 'format' |
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
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 |
---|---|---|
@@ -1,5 +1,5 @@ | ||
{ | ||
"trailingComma": "all", | ||
"semi": false, | ||
"singleQuote": true | ||
} | ||
"trailingComma": "all", | ||
"semi": false, | ||
"singleQuote": true | ||
} |
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
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 |
---|---|---|
@@ -1,58 +1,58 @@ | ||
const { MessageEmbed } = require("discord.js"); | ||
const ee = require("../../botconfig/embed.json"); | ||
const { MessageEmbed } = require('discord.js') | ||
const ee = require('../../botconfig/embed.json') | ||
|
||
module.exports = { | ||
name: "betrayal", | ||
category: "Activities", | ||
name: 'betrayal', | ||
category: 'Activities', | ||
aliases: [], | ||
cooldown: "", | ||
usage: "betrayal", | ||
description: "Play betrayal with your friends on Discord!", | ||
cooldown: '', | ||
usage: 'betrayal', | ||
description: 'Play betrayal with your friends on Discord!', | ||
memberpermissions: [], | ||
requiredroles: [], | ||
alloweduserids: [], | ||
minargs: 0, | ||
maxargs: 0, | ||
minplusargs: 0, | ||
maxplusargs: 0, | ||
argsmissing_message: "", | ||
argstoomany_message: "", | ||
argsmissing_message: '', | ||
argstoomany_message: '', | ||
run: async (client, message, args, plusArgs, cmdUser, text, prefix) => { | ||
const channel = message.member.voice.channel; | ||
const channel = message.member.voice.channel | ||
if (!channel) | ||
return message.channel.send( | ||
"You must join a voice channel to join activity!" | ||
); | ||
'You must join a voice channel to join activity!', | ||
) | ||
|
||
if (!channel.permissionsFor(message.client.user).has("CONNECT")) | ||
if (!channel.permissionsFor(message.client.user).has('CONNECT')) | ||
return message.channel.send( | ||
"I don't have permission to join the voice channel" | ||
); | ||
"I don't have permission to join the voice channel", | ||
) | ||
|
||
if (!channel.permissionsFor(message.client.user).has("SPEAK")) | ||
if (!channel.permissionsFor(message.client.user).has('SPEAK')) | ||
return message.channel.send( | ||
"I don't have permission to speak in the voice channel" | ||
); | ||
"I don't have permission to speak in the voice channel", | ||
) | ||
|
||
const msg = await message.reply("Please Wait..."); | ||
const msg = await message.reply('Please Wait...') | ||
client.discordTogether | ||
.createTogetherCode(channel.id, "betrayal") | ||
.createTogetherCode(channel.id, 'betrayal') | ||
.then(async (invite) => { | ||
msg.delete(); | ||
msg.delete() | ||
return message.reply({ | ||
embeds: [ | ||
new MessageEmbed() | ||
.setColor("RED") | ||
.setTitle("Betrayal!") | ||
.setColor('RED') | ||
.setTitle('Betrayal!') | ||
.setDescription( | ||
`[Click Here to start the activity!](${invite.code})` | ||
`[Click Here to start the activity!](${invite.code})`, | ||
) | ||
.setThumbnail( | ||
"https://images.crazygames.com/games/betrayal-io/cover-1615286192675.png" | ||
'https://images.crazygames.com/games/betrayal-io/cover-1615286192675.png', | ||
) | ||
.setFooter({ text: ee.footertext, iconURL: ee.footericon }), | ||
], | ||
}); | ||
}); | ||
}) | ||
}) | ||
}, | ||
}; | ||
} |
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
Oops, something went wrong.