Skip to content

Commit

Permalink
some todos for the next version
Browse files Browse the repository at this point in the history
  • Loading branch information
d-shaun committed Oct 5, 2021
1 parent f80e4ee commit 0734564
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/beta/commands/lyrics.ts
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ class LyricsCommand extends Command {
search_query = `${track_name} ${artist_name}`;
} else search_query = args.join(" ");

// TODO: &lyrics: support for custom lyrics and use Last.fm for search
const lyricist = new Lyricist(bot.genius_api);
const song = (await lyricist.search(search_query))[0];
if (!song) {
Expand Down
1 change: 1 addition & 0 deletions src/stable/commands/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ class ConfigCommand extends Command {
}

async run(bot: CrownBot, message: GuildMessage, args: string[]) {
// TODO: Interactive &config with buttons/select-menus?
const response = new BotMessage({ bot, message, text: "", reply: true });
if (!message.member?.permissions.has("MANAGE_GUILD")) {
response.text =
Expand Down
1 change: 1 addition & 0 deletions src/stable/commands/prefix.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ class PrefixCommand extends Command {
}

async run(bot: CrownBot, message: GuildMessage, args: string[]) {
// TODO: Migrate prefix into &config
const server_prefix = bot.cache.prefix.get(message.guild);
const response = new BotMessage({ bot, message, text: "", reply: true });
if (args.length === 0) {
Expand Down

0 comments on commit 0734564

Please sign in to comment.