forked from jagrosh/MusicBot
-
Notifications
You must be signed in to change notification settings - Fork 32
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
修正されたバグ: Windows環境下において、設定ファイルが文字化けしてしまう問題を修正 設定ファイルの文字化けによりニコニコ動画が再生できない問題を修正 コードの変更: インポートを最適化しました その他の変更: 和訳修正などなど。 Apache Commons IO v2.6を依存関係として追加しました。
- Loading branch information
1 parent
4cb9f64
commit a3c242a
Showing
31 changed files
with
141 additions
and
110 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -15,20 +15,21 @@ | |
*/ | ||
package com.jagrosh.jmusicbot; | ||
|
||
import java.util.concurrent.Executors; | ||
import java.util.concurrent.ScheduledExecutorService; | ||
import com.jagrosh.jdautilities.commons.waiter.EventWaiter; | ||
import com.jagrosh.jmusicbot.audio.AudioHandler; | ||
import com.jagrosh.jmusicbot.audio.NowplayingHandler; | ||
import com.jagrosh.jmusicbot.audio.PlayerManager; | ||
import com.jagrosh.jmusicbot.gui.GUI; | ||
import com.jagrosh.jmusicbot.playlist.PlaylistLoader; | ||
import com.jagrosh.jmusicbot.settings.SettingsManager; | ||
import java.util.Objects; | ||
import net.dv8tion.jda.core.JDA; | ||
import net.dv8tion.jda.core.entities.Game; | ||
import net.dv8tion.jda.core.entities.Guild; | ||
|
||
import java.util.Objects; | ||
import java.util.concurrent.Executors; | ||
import java.util.concurrent.ScheduledExecutorService; | ||
|
||
/** | ||
* | ||
* @author Cosgy Dev ([email protected]) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -16,19 +16,17 @@ | |
package com.jagrosh.jmusicbot; | ||
|
||
import com.jagrosh.jmusicbot.utils.OtherUtil; | ||
import java.util.concurrent.TimeUnit; | ||
import net.dv8tion.jda.core.JDA; | ||
import net.dv8tion.jda.core.entities.Guild; | ||
import net.dv8tion.jda.core.entities.User; | ||
import net.dv8tion.jda.core.entities.VoiceChannel; | ||
import net.dv8tion.jda.core.events.ReadyEvent; | ||
import net.dv8tion.jda.core.events.ShutdownEvent; | ||
import net.dv8tion.jda.core.events.guild.GuildJoinEvent; | ||
import net.dv8tion.jda.core.events.message.guild.GuildMessageDeleteEvent; | ||
import net.dv8tion.jda.core.hooks.ListenerAdapter; | ||
import org.slf4j.Logger; | ||
import org.slf4j.LoggerFactory; | ||
|
||
import java.util.concurrent.TimeUnit; | ||
|
||
/** | ||
* | ||
* @author Cosgy Dev ([email protected]) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -17,19 +17,15 @@ | |
|
||
import com.jagrosh.jmusicbot.JMusicBot; | ||
import com.jagrosh.jmusicbot.playlist.PlaylistLoader.Playlist; | ||
import com.jagrosh.jmusicbot.queue.FairQueue; | ||
import com.jagrosh.jmusicbot.settings.Settings; | ||
import com.jagrosh.jmusicbot.utils.FormatUtil; | ||
import com.sedmelluq.discord.lavaplayer.player.AudioPlayer; | ||
import com.sedmelluq.discord.lavaplayer.player.event.AudioEventAdapter; | ||
import com.sedmelluq.discord.lavaplayer.source.youtube.YoutubeAudioTrack; | ||
import com.sedmelluq.discord.lavaplayer.track.AudioTrack; | ||
import com.sedmelluq.discord.lavaplayer.track.AudioTrackEndReason; | ||
import com.sedmelluq.discord.lavaplayer.track.playback.AudioFrame; | ||
import java.util.HashSet; | ||
import java.util.LinkedList; | ||
import java.util.List; | ||
import java.util.Set; | ||
import com.jagrosh.jmusicbot.queue.FairQueue; | ||
import com.jagrosh.jmusicbot.settings.Settings; | ||
import com.jagrosh.jmusicbot.utils.FormatUtil; | ||
import com.sedmelluq.discord.lavaplayer.source.youtube.YoutubeAudioTrack; | ||
import net.dv8tion.jda.core.EmbedBuilder; | ||
import net.dv8tion.jda.core.JDA; | ||
import net.dv8tion.jda.core.MessageBuilder; | ||
|
@@ -38,6 +34,11 @@ | |
import net.dv8tion.jda.core.entities.Message; | ||
import net.dv8tion.jda.core.entities.User; | ||
|
||
import java.util.HashSet; | ||
import java.util.LinkedList; | ||
import java.util.List; | ||
import java.util.Set; | ||
|
||
/** | ||
* | ||
* @author Cosgy Dev ([email protected]) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -19,17 +19,18 @@ | |
import com.jagrosh.jmusicbot.entities.Pair; | ||
import com.jagrosh.jmusicbot.settings.Settings; | ||
import com.sedmelluq.discord.lavaplayer.track.AudioTrack; | ||
import java.util.HashMap; | ||
import java.util.HashSet; | ||
import java.util.Set; | ||
import java.util.concurrent.TimeUnit; | ||
import net.dv8tion.jda.core.Permission; | ||
import net.dv8tion.jda.core.entities.Game; | ||
import net.dv8tion.jda.core.entities.Guild; | ||
import net.dv8tion.jda.core.entities.Message; | ||
import net.dv8tion.jda.core.entities.TextChannel; | ||
import net.dv8tion.jda.core.exceptions.PermissionException; | ||
|
||
import java.util.HashMap; | ||
import java.util.HashSet; | ||
import java.util.Set; | ||
import java.util.concurrent.TimeUnit; | ||
|
||
/** | ||
* | ||
* @author Cosgy Dev ([email protected]) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -15,14 +15,15 @@ | |
*/ | ||
package com.jagrosh.jmusicbot.commands.admin; | ||
|
||
import java.util.List; | ||
import com.jagrosh.jdautilities.command.CommandEvent; | ||
import com.jagrosh.jdautilities.commons.utils.FinderUtil; | ||
import com.jagrosh.jmusicbot.commands.AdminCommand; | ||
import com.jagrosh.jmusicbot.settings.Settings; | ||
import com.jagrosh.jmusicbot.utils.FormatUtil; | ||
import net.dv8tion.jda.core.entities.Role; | ||
|
||
import java.util.List; | ||
|
||
/** | ||
* | ||
* @author John Grosh <[email protected]> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -15,14 +15,15 @@ | |
*/ | ||
package com.jagrosh.jmusicbot.commands.admin; | ||
|
||
import java.util.List; | ||
import com.jagrosh.jdautilities.command.CommandEvent; | ||
import com.jagrosh.jdautilities.commons.utils.FinderUtil; | ||
import com.jagrosh.jmusicbot.commands.AdminCommand; | ||
import com.jagrosh.jmusicbot.settings.Settings; | ||
import com.jagrosh.jmusicbot.utils.FormatUtil; | ||
import net.dv8tion.jda.core.entities.TextChannel; | ||
|
||
import java.util.List; | ||
|
||
/** | ||
* | ||
* @author John Grosh <[email protected]> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -15,14 +15,15 @@ | |
*/ | ||
package com.jagrosh.jmusicbot.commands.admin; | ||
|
||
import java.util.List; | ||
import com.jagrosh.jdautilities.command.CommandEvent; | ||
import com.jagrosh.jdautilities.commons.utils.FinderUtil; | ||
import com.jagrosh.jmusicbot.commands.AdminCommand; | ||
import com.jagrosh.jmusicbot.settings.Settings; | ||
import com.jagrosh.jmusicbot.utils.FormatUtil; | ||
import net.dv8tion.jda.core.entities.VoiceChannel; | ||
|
||
import java.util.List; | ||
|
||
/** | ||
* | ||
* @author John Grosh <[email protected]> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -15,11 +15,6 @@ | |
*/ | ||
package com.jagrosh.jmusicbot.commands.music; | ||
|
||
import com.sedmelluq.discord.lavaplayer.player.AudioLoadResultHandler; | ||
import com.sedmelluq.discord.lavaplayer.tools.FriendlyException; | ||
import com.sedmelluq.discord.lavaplayer.tools.FriendlyException.Severity; | ||
import com.sedmelluq.discord.lavaplayer.track.AudioPlaylist; | ||
import com.sedmelluq.discord.lavaplayer.track.AudioTrack; | ||
import com.jagrosh.jdautilities.command.Command; | ||
import com.jagrosh.jdautilities.command.CommandEvent; | ||
import com.jagrosh.jdautilities.menu.ButtonMenu; | ||
|
@@ -30,12 +25,18 @@ | |
import com.jagrosh.jmusicbot.playlist.PlaylistLoader.Playlist; | ||
import com.jagrosh.jmusicbot.settings.Settings; | ||
import com.jagrosh.jmusicbot.utils.FormatUtil; | ||
import java.util.concurrent.TimeUnit; | ||
import com.sedmelluq.discord.lavaplayer.player.AudioLoadResultHandler; | ||
import com.sedmelluq.discord.lavaplayer.tools.FriendlyException; | ||
import com.sedmelluq.discord.lavaplayer.tools.FriendlyException.Severity; | ||
import com.sedmelluq.discord.lavaplayer.track.AudioPlaylist; | ||
import com.sedmelluq.discord.lavaplayer.track.AudioTrack; | ||
import net.dv8tion.jda.core.Permission; | ||
import net.dv8tion.jda.core.entities.Message; | ||
import net.dv8tion.jda.core.entities.Role; | ||
import net.dv8tion.jda.core.exceptions.PermissionException; | ||
|
||
import java.util.concurrent.TimeUnit; | ||
|
||
/** | ||
* | ||
* @author John Grosh <[email protected]> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -15,11 +15,12 @@ | |
*/ | ||
package com.jagrosh.jmusicbot.commands.music; | ||
|
||
import java.util.List; | ||
import com.jagrosh.jdautilities.command.CommandEvent; | ||
import com.jagrosh.jmusicbot.Bot; | ||
import com.jagrosh.jmusicbot.commands.MusicCommand; | ||
|
||
import java.util.List; | ||
|
||
/** | ||
* | ||
* @author John Grosh <[email protected]> | ||
|
Oops, something went wrong.