militron.blogg.se

Iconomy commands
Iconomy commands






  1. #Iconomy commands full
  2. #Iconomy commands free

Which may suggest that add_cog() has to use awaitĬode works for me when I add async and await. RuntimeWarning: Enable tracemalloc to get the object allocation traceback When I use async def setup(client) then I gets different error /home/furas/cogs/economy.py:19: RuntimeWarning: coroutine 'BotBase.add_cog' was never awaited

#Iconomy commands full

You didn't show FULL error message but it shows problem with await setup(self) Traceback (most recent call last):įile "/usr/local/lib/python3.10/dist-packages/discord/ext/commands/bot.py", line 946, in _load_from_module_specįile "/usr/local/lib/python3.10/dist-packages/discord/client.py", line 409, in _run_eventįile "/home/furas/main.py", line 18, in on_readyįile "/usr/local/lib/python3.10/dist-packages/discord/ext/commands/bot.py", line 1012, in load_extensionįile "/usr/local/lib/python3.10/dist-packages/discord/ext/commands/bot.py", line 951, in _load_from_module_specĪnd it may suggest that setup() has to use async. Raise errors.ExtensionFailed(key, e) from eĭ.ExtensionFailed: Extension 'cogs.economy' raised an error: TypeError: object NoneType can't be used in 'await' expression The above exception was the direct cause of the following exception:įile "D:\Documents\PythonProjects\DiscordBot\venv\lib\site-packages\discord\client.py", line 409, in _run_eventįile "D:\Documents\PythonProjects\DiscordBot\exp_bot.py", line 51, in on_readyįile "D:\Documents\PythonProjects\DiscordBot\venv\lib\site-packages\discord\ext\commands\bot.py", line 1012, in load_extensionĪwait self._load_from_module_spec(spec, name)įile "D:\Documents\PythonProjects\DiscordBot\venv\lib\site-packages\discord\ext\commands\bot.py", line 951, in _load_from_module_spec TypeError: object NoneType can't be used in 'await' expression I have no idea how there is a NoneType object here.Įdit: Full Error Traceback (most recent call last):įile "D:\Documents\PythonProjects\DiscordBot\venv\lib\site-packages\discord\ext\commands\bot.py", line 946, in _load_from_module_spec The 'hello' has just a command in it, and it works just fine. I have tried async-await for the setup but i still cant around this. iConomy brings a money, auction, and shop system into play. Self.client = def on_message(self, message):Ĭlient = commands.Bot(command_prefix=prefix, def on_ready():Īwait client.load_extension('cogs.economy') your familiar economy scheme and pushes it into minecraft using MUD style commands. economy.py: from discord.ext import commands I have the extension economy.py in the folder cogs. iConomy Reloaded bukkit Plugin in Latest Version Version: 6. ExtensionFailed: Extension 'cogs.economy' raised an error: TypeError: object NoneType can't be used in 'await' expression You will have to create get the following error when i run my bot. Three additional settings can be made in the config.yml file to localize Command iConomy's text.

#Iconomy commands free

Ex:ĬommandIConomy.Free - Grants free access to all commands. To do so, add a space and then the number of seconds to wait after the command's cost. You can now configure a number of seconds before charging a player again for a command. \S+ = One or more non-whitespace characters>įor best results, please study and learn regular expressions!įor more info on regular expressions, see: Together these features allow open ended commands to be individually charged. If the command is configured with a cost of zero, processing will stop but the player will not be charged. If a match is found, Command iConomy stops looking for a match and charges the player the configured amount. Regular expressions allow you to charge separately for individual sub-commands or even specific command arguments.Ī typical configuration line looks like this: ^/tp$: 10Ī configuration line matching sub-commands might look like this: ^/time (day|night)$: 20Ĭommand expressions are matched in order from top to bottom. Command iConomy matches regular expressions against user input. To set the price of a command, add a line to prices.yml. Command iConomy requires Vault!Įxamples include charging for each summoned magic carpet, or adding a fee for different kits. If text entered by a player matches a configured rule, Command iConomy will attempt to bill the player.

iconomy commands

Commands are matched using java regular expressions. PLEASE OPEN A NEW TICKET FOR EVERY ISSUE, THERE WILL BE NO HELP IN COMMENTS!Ĭommand iConomy is a plugin that allows a server admin to assign a cost to server commands that is deducted from a player's iConomy account whenever a player uses that command. Description: Simple, easy, and intuitive economy for minecraft.

iconomy commands

Command iConomy - Charge for each command








Iconomy commands