Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

closes wwosimulation/tracker/issues/583 #406

Draft
wants to merge 9 commits into
base: main
Choose a base branch
from
Draft
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Prettified Code!
  • Loading branch information
Hackante authored and actions-user committed Nov 29, 2022
commit 9a5ca1d28d4ec1c99aa9189369ed70ea9d81e788
4 changes: 2 additions & 2 deletions slashCommands/narratorSlash/sroleSlash.js
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ module.exports = {
return a
})
.forEach(async (player, i) => {
if (player.nickname !== i + 1) player.setNickname(`${i + 1}` + (await mongo.players.findOne({user: player.id})).rename ? ` | ${player.username}` : "")
if (player.nickname !== i + 1) player.setNickname(`${i + 1}` + (await mongo.players.findOne({ user: player.id })).rename ? ` | ${player.username}` : "")
db.set(`player_${player.id}`, { id: player.id, username: player.user.username })
})

Expand Down Expand Up @@ -375,7 +375,7 @@ module.exports = {

let guy = await interaction.guild.members.fetch(player)

let channel = await interaction.guild.channels.create((index + 1) + "-" + (guy.user.username), {
let channel = await interaction.guild.channels.create(index + 1 + "-" + guy.user.username, {

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

voodoo? why the plus one there

parent: "892046231516368906",
})

Expand Down