Jump to content

Discord procon plugin


Dooom3d

Recommended Posts

48 minutes ago, Dooom3d said:

How hard would it be to make a discord procon plugin, that can send the current amount of players to a discord server? Or automatically update a channel/post in a channel to the current player count?

Already exists https://gitlab.com/e4gl/BF4StatusBot

 

Docker hub: https://hub.docker.com/r/e4gl/bf4statusbot

Need new plugin features? I can change: Adkats, AdKatsLRT, LanguageEnforcer, InsaneLimits, xVotemap for you. Also working on new plugins. Have an idea? Share it and I might include it in my repos. Github.com/hedius

 

Check out E4GLAdKats for an advancded and maintained AdKats version.

Link to comment
13 hours ago, Hedius said:

So, I think I've got everything set up correctly (I'm not 100% sure), but I keep getting errors on start up of the bot.

01.03 12:56:14 [Bot] Traceback (most recent call last):
01.03 12:56:14 [Bot] File "/run.py", line 39, in <module>
01.03 12:56:14 [Bot] settings.validators.validate()
01.03 12:56:14 [Bot] File "/.local/lib/python3.9/site-packages/dynaconf/validator.py", line 318, in validate
01.03 12:56:14 [Bot] validator.validate(self.settings)
01.03 12:56:14 [Bot] File "/.local/lib/python3.9/site-packages/dynaconf/validator.py", line 172, in validate
01.03 12:56:14 [Bot] self._validate_items(settings, settings.current_env)
01.03 12:56:14 [Bot] File "/.local/lib/python3.9/site-packages/dynaconf/validator.py", line 194, in _validate_items
01.03 12:56:14 [Bot] raise ValidationError(
01.03 12:56:14 [Bot] dynaconf.validator.ValidationError: BOT_TOKEN is required in env main

 

Link to comment
1 minute ago, Dooom3d said:

So, I think I've got everything set up correctly (I'm not 100% sure), but I keep getting errors on start up of the bot.


01.03 12:56:14 [Bot] Traceback (most recent call last):
01.03 12:56:14 [Bot] File "/run.py", line 39, in <module>
01.03 12:56:14 [Bot] settings.validators.validate()
01.03 12:56:14 [Bot] File "/.local/lib/python3.9/site-packages/dynaconf/validator.py", line 318, in validate
01.03 12:56:14 [Bot] validator.validate(self.settings)
01.03 12:56:14 [Bot] File "/.local/lib/python3.9/site-packages/dynaconf/validator.py", line 172, in validate
01.03 12:56:14 [Bot] self._validate_items(settings, settings.current_env)
01.03 12:56:14 [Bot] File "/.local/lib/python3.9/site-packages/dynaconf/validator.py", line 194, in _validate_items
01.03 12:56:14 [Bot] raise ValidationError(
01.03 12:56:14 [Bot] dynaconf.validator.ValidationError: BOT_TOKEN is required in env main

 

Please read the readme. You have to either configure the config files or set the environment variables as stated in the readme.

Need new plugin features? I can change: Adkats, AdKatsLRT, LanguageEnforcer, InsaneLimits, xVotemap for you. Also working on new plugins. Have an idea? Share it and I might include it in my repos. Github.com/hedius

 

Check out E4GLAdKats for an advancded and maintained AdKats version.

Link to comment
2 minutes ago, Hedius said:

Please read the readme. You have to either configure the config files or set the environment variables as stated in the readme.

I'm using the toml file, which has the bot token, and server GUID. Set it how the user.toml.example is setup. Or, do you have to use the docker-compose.yml?

Link to comment
3 minutes ago, Dooom3d said:

I'm using the toml file, which has the bot token, and server GUID. Set it how the user.toml.example is setup. Or, do you have to use the docker-compose.yml?

Did you rename it to user.toml?

Need new plugin features? I can change: Adkats, AdKatsLRT, LanguageEnforcer, InsaneLimits, xVotemap for you. Also working on new plugins. Have an idea? Share it and I might include it in my repos. Github.com/hedius

 

Check out E4GLAdKats for an advancded and maintained AdKats version.

Link to comment
2 minutes ago, Dooom3d said:

image.png.82bbb695329a3bacffc898b05b75568c.png

Yep, mirrored the user.toml.example, added the guid and bot token as well. 

Do you use docker?

Need new plugin features? I can change: Adkats, AdKatsLRT, LanguageEnforcer, InsaneLimits, xVotemap for you. Also working on new plugins. Have an idea? Share it and I might include it in my repos. Github.com/hedius

 

Check out E4GLAdKats for an advancded and maintained AdKats version.

Link to comment
2 minutes ago, Hedius said:

Do you use docker?

I haven't as of yet - Need to enable stuff in my BIOS to allow it to install. 

Currently trying to host it on pebblehost using their discord bot hosting. I'm new to discord bots/hosting etc, so it's more than likely something on my end, but I have read the readme 

Link to comment
3 hours ago, Dooom3d said:

I haven't as of yet - Need to enable stuff in my BIOS to allow it to install. 

Currently trying to host it on pebblehost using their discord bot hosting. I'm new to discord bots/hosting etc, so it's more than likely something on my end, but I have read the readme 

The config file handling might be broken. Pls set the config via environment variables until it is fixed.

https://phoenixnap.com/kb/linux-set-environment-variable

 

Need new plugin features? I can change: Adkats, AdKatsLRT, LanguageEnforcer, InsaneLimits, xVotemap for you. Also working on new plugins. Have an idea? Share it and I might include it in my repos. Github.com/hedius

 

Check out E4GLAdKats for an advancded and maintained AdKats version.

Link to comment

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

Please review our Terms of Use and Privacy Policy. We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.