mirror of
https://github.com/HappyTanuki/BumbleCee.git
synced 2025-10-25 17:35:58 +00:00
뭔지 모르는데 일단 변경사항
This commit is contained in:
@@ -64,9 +64,10 @@ void commands::Play::operator()(const dpp::slashcommand_t& event)
|
|||||||
time_t SongLength = int(document["duration"]);
|
time_t SongLength = int(document["duration"]);
|
||||||
char SongLengthStr[10];
|
char SongLengthStr[10];
|
||||||
tm t;
|
tm t;
|
||||||
|
t.tm_mday = SongLength / 86400;
|
||||||
|
t.tm_hour = (SongLength % 86400)/3600;
|
||||||
|
t.tm_min = (SongLength % 3600)/60;
|
||||||
t.tm_sec = SongLength%60;
|
t.tm_sec = SongLength%60;
|
||||||
t.tm_min = SongLength/60;
|
|
||||||
t.tm_hour = SongLength/360;
|
|
||||||
strftime(SongLengthStr, sizeof(SongLengthStr), "%X", &t);
|
strftime(SongLengthStr, sizeof(SongLengthStr), "%X", &t);
|
||||||
|
|
||||||
FQueueElement Data = {
|
FQueueElement Data = {
|
||||||
|
|||||||
@@ -136,6 +136,8 @@ void MusicQueue::markerCallback()
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//v->voiceclient->error(4014);
|
||||||
|
|
||||||
/* load the audio file with oggz */
|
/* load the audio file with oggz */
|
||||||
OGGZ *track_og = oggz_open(("Music/" + music.fileName + ".ogg").c_str(), OGGZ_READ);
|
OGGZ *track_og = oggz_open(("Music/" + music.fileName + ".ogg").c_str(), OGGZ_READ);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user