feat: 曲追加

This commit is contained in:
n1lsqn 2023-11-12 11:18:20 +09:00
parent c9abd5b77d
commit 2940d30602

View file

@ -3,7 +3,8 @@ import Module from '@/module';
import Message from '@/message';
import serifs from '@/serifs';
const musicUrls = [
const vocaloidUrls = [
// ボカロ
'https://www.nicovideo.jp/watch/sm31677384',
'https://www.nicovideo.jp/watch/sm19042393',
'https://www.nicovideo.jp/watch/sm24892241',
@ -42,7 +43,53 @@ const musicUrls = [
'https://www.nicovideo.jp/watch/sm11834233',
'https://www.nicovideo.jp/watch/sm30519579',
'https://www.nicovideo.jp/watch/sm32537029',
'https://www.nicovideo.jp/watch/sm38708262'
'https://www.nicovideo.jp/watch/sm38708262',
'https://www.nicovideo.jp/watch/sm10393864',
'https://www.nicovideo.jp/watch/sm8061508',
'https://www.nicovideo.jp/watch/so15313251',
'https://www.nicovideo.jp/watch/sm2651288',
'https://www.nicovideo.jp/watch/sm36787316',
'https://www.nicovideo.jp/watch/sm1715919',
'https://www.nicovideo.jp/watch/sm2397344',
'https://www.nicovideo.jp/watch/sm25943367',
'https://www.nicovideo.jp/watch/sm9714351',
'https://www.nicovideo.jp/watch/sm40554570',
'https://www.nicovideo.jp/watch/sm31533883',
'https://www.nicovideo.jp/watch/sm33510542',
'https://www.nicovideo.jp/watch/sm12825985',
'https://www.nicovideo.jp/watch/sm2937784',
'https://www.nicovideo.jp/watch/sm20296308',
'https://www.nicovideo.jp/watch/sm30067009',
'https://www.nicovideo.jp/watch/sm31606995',
'https://www.nicovideo.jp/watch/sm11809611',
'https://www.nicovideo.jp/watch/sm24536934',
'https://www.nicovideo.jp/watch/sm12441199',
'https://www.nicovideo.jp/watch/sm6119955',
'https://www.nicovideo.jp/watch/sm8082467',
'https://www.nicovideo.jp/watch/sm3504435',
'https://www.nicovideo.jp/watch/sm14330479',
'https://www.nicovideo.jp/watch/sm22960446',
'https://www.nicovideo.jp/watch/sm6909505',
'https://www.nicovideo.jp/watch/sm17910036',
'https://www.nicovideo.jp/watch/sm15630734',
'https://www.nicovideo.jp/watch/sm11956364',
'https://www.nicovideo.jp/watch/sm31791630',
'https://www.nicovideo.jp/watch/sm11398357',
'https://www.nicovideo.jp/watch/sm28576299',
'https://www.nicovideo.jp/watch/sm1097445',
'https://www.nicovideo.jp/watch/sm18100389',
'https://www.nicovideo.jp/watch/sm6529016',
'https://www.nicovideo.jp/watch/nm6049209',
'https://www.nicovideo.jp/watch/sm31807833',
'https://www.nicovideo.jp/watch/sm31388743',
'https://www.nicovideo.jp/watch/sm35761194',
'https://www.nicovideo.jp/watch/sm27529228'
// **
]
const jPopUrls = [
'https://youtu.be/GpADSdd68UI?si=zrmgRShTOO8m1dA7',
'https://www.youtube.com/watch?v=qU-mi_S68Dk'
]
export default class extends Module {
@ -57,8 +104,8 @@ export default class extends Module {
@autobind
private async mentionHook(msg: Message) {
if (msg.includes(['音楽', '曲'])) {
const music = musicUrls[Math.floor(Math.random() * musicUrls.length)];
if (msg.includes(['音楽', '曲', '曲者'])) {
const music = vocaloidUrls[Math.floor(Math.random() * vocaloidUrls.length)];
msg.reply(serifs.recommendMusic.suggestMusic(music));
return true;
} else {