Dooom3d Posted February 28, 2021 Share Posted February 28, 2021 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? Link to comment
Hedius Posted February 28, 2021 Share Posted February 28, 2021 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
Dooom3d Posted March 1, 2021 Author Share Posted March 1, 2021 1 hour ago, Hedius said: Already exists https://gitlab.com/e4gl/BF4StatusBot Docker hub: https://hub.docker.com/r/e4gl/bf4statusbot How would I run said bot? I'm guessing through a VPS? and thank you Link to comment
Dooom3d Posted March 1, 2021 Author Share Posted March 1, 2021 13 hours ago, Hedius said: Already exists https://gitlab.com/e4gl/BF4StatusBot Docker hub: https://hub.docker.com/r/e4gl/bf4statusbot 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
Hedius Posted March 1, 2021 Share Posted March 1, 2021 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
Dooom3d Posted March 1, 2021 Author Share Posted March 1, 2021 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
Hedius Posted March 1, 2021 Share Posted March 1, 2021 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
Dooom3d Posted March 1, 2021 Author Share Posted March 1, 2021 Yep, mirrored the user.toml.example, added the guid and bot token as well. Link to comment
Hedius Posted March 1, 2021 Share Posted March 1, 2021 2 minutes ago, Dooom3d said: 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
Dooom3d Posted March 1, 2021 Author Share Posted March 1, 2021 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
Hedius Posted March 1, 2021 Share Posted March 1, 2021 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
Recommended Posts
Archived
This topic is now archived and is closed to further replies.