Exemple #1
0
def runClient():
    """This method loads the environment variables and runs the Discord bot client."""
    loadSettings()
    client = Discord()
    runDiscordBot(client)
Exemple #2
0
    print("Made by @InValidFire")
    print(f"Version: {VERSION}")
    print("Seed: " + dirs.seed)
    print("Successfully loaded " + str(len(subdirs)) + " dataset(s)")
    print("Selected dataset: " + str(dirs.datasetFolder.replace("\\", "")))
    print(
        "WARNING: Program is in active development, no garauntee of functionality is granted"
    )
    print("----------------------")


#seed initialize
dirs.setSeed(int(time.time()))

#update check
settings.loadSettings(dirs.dataDir + "\\settings.json")
header()

#directory handling - move to its own file
if (len(subdirs) == 0):
    print("No data found in the" + dirs.dataFolder +
          " directory.\nExtract Behavior Pack data in a sub-folder of " +
          dirs.dataFolder + " to continue.")
    print("\nEx. " + dirs.dataFolder + "\\DATASETNAME\\(data contents)")
    exit()
if (os.path.exists(dirs.dataDir + "\\manifest.json")):
    print("Found a manifest.json in the " + dirs.dataFolder +
          " directory. Ensure you extracted into a subfolder of " +
          dirs.dataFolder + ", not directly there.")
    print("\nEx. " + dirs.dataFolder + "\\DATASETNAME\\(data contents)")
    exit()
Exemple #3
0
def runClient():
    """This method loads the environment variables and runs the Discord bot client."""
    loadSettings()
    client = Discord(command_prefix="!", help_command=None)
    runDiscordBot(client)
Exemple #4
0
def runClient():
    loadSettings()
    client = Discord()
    runDiscordBot(client)