larssieboy18 / discord-uno Goto Github PK
View Code? Open in Web Editor NEWAn UNO Discord bot hosted on Autocode
Home Page: https://autocode.com/mp/?fork=github%3Alarssieboy18%2Fdiscord-uno
License: MIT License
An UNO Discord bot hosted on Autocode
Home Page: https://autocode.com/mp/?fork=github%3Alarssieboy18%2Fdiscord-uno
License: MIT License
lines: 64,68
assignees: larssieboy18
labels: enhancement
If a special card is dealt at the first turn, the game should apply that effect to the first player (e.g. skip the player on a skip card, give 2 extra card on a +2 card, etc.)
Line: 28
discord-uno//functions/events/discord/uno/start.js
Lines 25 to 35 in f5cb589
assignees: larssieboy18
lines: 204, 205
labels: enhancement
Add a button to the embed that allows the user to cancel the game.
Line: 228
discord-uno//functions/events/discord/command/start-game.js
Lines 225 to 235 in c3a951f
labels: enhancement
assignees: larssieboy18
lines: 123,132
if everyone has accepted the game, the initial message should be edited to something like: "everyone has accepted the game. It has started in <#channel>"
Line: 117
discord-uno//functions/events/discord/message/button/interaction.js
Lines 114 to 124 in f5cb589
Line: 5
discord-uno//.github/workflows/pr-checkboxes.yml
Lines 2 to 12 in 52b76f4
sometimes people can select a voice channel or category, either on purpose or by accident. This should cause the command to fail.
lines: 16, 20
assignees: larssieboy18
labels: enhancement
Line: 23
discord-uno//functions/events/discord/command/start-game.js
Lines 20 to 30 in c3a951f
lines 120
Currently, the message shows a message saying that the player that starts the game starts the game. For consequent turns, it should be altered to show that it is someones turn instead of the person starting a game.
if everyone has accepted the game, the initial message should be edited to something like: "everyone has accepted the game. It has started in <#channel>"
This issue has been automatically created by todo-actions based on a TODO comment found in functions/events/discord/message/button/interaction.js:117. It will automatically be closed when the TODO comment is removed from the default branch (main).
This issue lists Renovate updates and detected dependencies. Read the Dependency Dashboard docs to learn more.
These updates await pending status checks. To force their creation now, click the checkbox below.
.github/workflows/PR-labeler.yml
actions/labeler v4
.github/workflows/auto-assign.yml
technote-space/assign-author v1
.github/workflows/automatic-translation.yml
tomsun28/issues-translate-action v2.7
.github/workflows/automerge.yml
pascalgn/automerge-action v0.15.5
.github/workflows/codeql-analysis.yml
actions/checkout v3
github/codeql-action v2
github/codeql-action v2
github/codeql-action v2
.github/workflows/dependency-review.yml
actions/checkout v3
actions/dependency-review-action v2
.github/workflows/issue-labeler.yml
github/issue-labeler v2.5
.github/workflows/pr-checkboxes.yml
loxygenK/taskonfirm v1.0.0
.github/workflows/release-drafter.yml
release-drafter/release-drafter v5
.github/workflows/semgrep.yml
actions/checkout v3
.github/workflows/stale.yml
actions/stale v6
.github/workflows/todo.yml
package.json
js-base64 3.7.2
If a special card is dealt at the first turn, the game should apply that effect to the first player (e.g. skip the player on a skip card, give 2 extra card on a +2 card, etc.)
// create discard pile
let discardPile = [];
// add first card to discard pile
discardPile.push(startingDeck.pop());
Add a button to the embed that allows the user to cancel the game.
This issue has been automatically created by todo-actions based on a TODO comment found in functions/events/discord/command/start-game.js:199. It will automatically be closed when the TODO comment is removed from the default branch (main).
Decide where the message should be sent and remove the other message.
This issue has been automatically created by todo-actions based on a TODO comment found in functions/events/discord/command/start-game.js:206. It will automatically be closed when the TODO comment is removed from the default branch (main).
// debugging - provide test data while debugging
let context = {
params: {
game: {
gameChannel: `976400262677803018`,
players: [
{
id: `119473151913623552`
},
{
id: `793188304764928023`
}
]
},
event: {
guild_id: `975789410186567730`,
},
},
}
assignees: larssieboy18
lines: 204, 205
labels: enhancement
Add a button to the embed that allows the user to cancel the game.
Line: 228
discord-uno//functions/events/discord/command/start-game.js
Lines 225 to 235 in f5cb589
Remove all test data, i.e. the one listed in the first 112 lines of this file, from all.js
.
e.g. replace hello
with event
and remove the hello
variable.
replace eventt
with event
and remove the eventt
variable.
Line: 117
sometimes people can select a voice channel or category, either on purpose or by accident. This should cause the command to fail.
let { event } = context.params,
{ member, data, token, guild_id, received_at } = event;
/* Getting the channel from the options. */
let channel = (data.options.find((option) => option.name == `channel`)).value;
Merge all (compatible) action files into 1 .yml
file to limit the amount of separate files
Feel free to contribute to this.
labels: bug
assignees: larssieboy18
lines: 214
Decide where the message should be sent and remove the other message.
Sending a message to the channel where the game will be played. */
Line: 237
discord-uno//functions/events/discord/command/start-game.js
Lines 234 to 244 in c3a951f
labels: enhancement
assignees: larssieboy18
lines: 123,132
if everyone has accepted the game, the initial message should be edited to something like: "everyone has accepted the game. It has started in <#channel>"
Line: 117
discord-uno//functions/events/discord/message/button/interaction.js
Lines 114 to 124 in c3a951f
lines: 120
labels: development
assignees: larssieboy18
Currently, the message shows a message saying that the player that starts the game starts the game. For consequent turns, it should be altered to show that it is someones turn instead of the person starting a game.
Line: 131
discord-uno//functions/events/discord/uno/start.js
Lines 128 to 138 in f5cb589
lines: 120
labels: development
assignees: larssieboy18
Currently, the message shows a message saying that the player that starts the game starts the game. For consequent turns, it should be altered to show that it is someones turn instead of the person starting a game.
Line: 131
discord-uno//functions/events/discord/uno/start.js
Lines 128 to 138 in c3a951f
if everyone has accepted the game, the initial message should be edited to something like: "everyone has accepted the game. It has started in <#channel>"
This issue has been automatically created by todo-actions based on a TODO comment found in functions/events/discord/message/button/interaction.js:117. It will automatically be closed when the TODO comment is removed from the default branch (main).
Make sure that all plain text (and variables) are included in the /lang/en.json
file so that translation is possible.
sometimes people can select a voice channel or category, either on purpose or by accident. This should cause the command to fail.
lines: 16, 20
assignees: larssieboy18
labels: enhancement
Line: 23
discord-uno//functions/events/discord/command/start-game.js
Lines 20 to 30 in f5cb589
lines: 64,68
assignees: larssieboy18
labels: enhancement
If a special card is dealt at the first turn, the game should apply that effect to the first player (e.g. skip the player on a skip card, give 2 extra card on a +2 card, etc.)
Line: 28
discord-uno//functions/events/discord/uno/start.js
Lines 25 to 35 in c3a951f
close-label.yml
contains an error, where a -
is used instead of _
labels: enhancement
assignees: larssieboy18
lines: 86,105
Line: 74
discord-uno//functions/events/discord/uno/start.js
Lines 71 to 81 in c3a951f
Add buttons to starting message
// send starting message to game channel
let startingMessage = await messages.create(gameChannel, '', [
{
title: "UNO",
description: `**<@${startingPlayer.id}>** starts the game!`,
color: 0x00ff00,
fields: [
{
name: "Current Card",
value: `${discardPile[0]}`,
inline: true,
},
{
name: "Current Player",
value: `${startingPlayer.name}`,
inline: true,
},
],
}
], []);
labels: enhancement
assignees: larssieboy18
lines: 86,105
Line: 74
discord-uno//functions/events/discord/uno/start.js
Lines 71 to 81 in f5cb589
Line: 4
discord-uno//.github/workflows/pr-checkboxes.yml
Lines 1 to 11 in 52b76f4
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.