-
Notifications
You must be signed in to change notification settings - Fork 11
Fixed some bugs #84
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
base: master
Are you sure you want to change the base?
Fixed some bugs #84
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -13,7 +13,12 @@ module.exports = { | |
const permissions = message.member.roles.some((d) => | ||
['Admins', 'Moderator'].includes(d.name) | ||
); | ||
del(message, args, dry, cmd = command, permissions); | ||
if (arg.length == 1 || args.length == 2) { | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Args here too There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. yeah, wrote this out in browser and copy pasted it 😅 |
||
del(message, args, dry, cmd = command, permissions); | ||
} else { | ||
message.channel.send("Correct usage: " + | ||
tick(prefix + "histdel index")); | ||
} | ||
return true; | ||
} | ||
return false; | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -65,10 +65,10 @@ async function hist(message, args, cmd) { | |
let i = 0; | ||
userDB.historicSchedules.forEach(schedule => { | ||
console.log(i); | ||
schedules.push(tick(i) + ' ' + schedule.name); | ||
schedule_starts.push(tick(dateToStringSimple(schedule.setAt).slice(0,10))); | ||
adapted.push(tick(schedule.adaptDate ? | ||
dateToStringSimple(schedule.adaptDate).slice(0,10) : "No")); | ||
schedules.push(i + ' ' + schedule.name); | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Was ticking ugly here? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. removed by zand's request, i personally liked it There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Alright I guess, kinda liked it too I think xD There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. the issue is ticking makes it not aligned xD |
||
schedule_starts.push(dateToStringSimple(schedule.setAt).slice(0,10)); | ||
adapted.push(schedule.adaptDate ? | ||
dateToStringSimple(schedule.adaptDate).slice(0,10) : "No"); | ||
i += 1; | ||
}); | ||
} | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
arg? Forgot s?