Browse Source

23.08.2017 -- Added Welcome MSG

pull/11/head
Niklas H. 2 years ago
parent
commit
aa07d1063f
No known key found for this signature in database
2 changed files with 7 additions and 1 deletions
  1. +6
    -0
      src/main/java/discord/Stats.java
  2. +1
    -1
      src/main/java/events/Module.java

+ 6
- 0
src/main/java/discord/Stats.java View File

@@ -4,6 +4,7 @@ import org.json.JSONArray;
import sx.blah.discord.handle.obj.IGuild;
import util.Console;
import util.Fast;
import util.SMB;
import util.Utils;

import java.util.ArrayList;
@@ -29,6 +30,11 @@ public class Stats implements Fast {
if (!serverlist.contains(server.getStringID())) {
joinedserver = joinedserver + 1;
serverlist.add(server.getStringID());
BotUtils.sendPrivEmbMessage(server.getOwner().getOrCreatePMChannel(), SMB.shortMessage("Hello, \n" +
"I'm your new Discord bot. \n" +
"Type "+DRIVER.getPropertyOnly(DRIVER.CONFIG, "botprefix").toString()+".help \n" +
"If you have any Problems then contact me (https://moddylp.de/). \n \n" +
"Have a nice Day"), false);
}
}


+ 1
- 1
src/main/java/events/Module.java View File

@@ -11,6 +11,6 @@ import util.Fast;
public class Module implements Fast, LanguageInterface {
@Override
public void setdefaultLanguage() {
Console.error("No Language for "+this.getClass().getName());
Console.println("No Language for "+this.getClass().getName());
}
}

Loading…
Cancel
Save