Warning: session_start(): open(/var/lib/php/sessions/sess_vf1plvhqdc5c3l5ttiic42ee7b, O_RDWR) failed: No space left on device (28) in /var/www/tb-usercake/models/config.php on line 51
Warning: session_start(): Failed to read session data: files (path: /var/lib/php/sessions) in /var/www/tb-usercake/models/config.php on line 51
!7
import net.dv8tion.jda.api.managers.AudioManager;
cmodule DiscordAudioSpike > DynTalkBot2 {
S myName = "Discord Audio Spike";
start {
makeByServer = () -> new ByServer;
useAGIBlueForDropPunctuation = false;
preprocessAtSelfToMyName = false;
}
class ByServer extends DynTalkBot2.ByServer {
synchronized S processSimplifiedLine(S s, O... _) {
try answer super.processSimplifiedLine(s, _); // adding authorized users etc.
new Matches m;
if null (s = dropMyPrefixOrNull(s)) null;
optPar Message msg;
Guild guild = msg == null ? null : msg.getGuild();
if "voice channels"
ret str(guild.getVoiceChannels());
if "join voice channel"
ret joinVoiceChannel(first(guild.getVoiceChannels());
if (eqic(s, "help"))
ret ltrim([[
I'm a Discord Audio Test
[Bot made by https://BotCompany.de]
]]).replace("@me", atSelf());
null;
}
S joinVoiceChannel(VoiceChannel vc) {
if (vc == null) ret "No channel";
Guild guild = vc.getGuild();
AudioManager am = guild.getAudioManager();
am.openAudioConnection(vc);
ret "Audio connection to " + vc.getName() + " opened";
}
}
}