You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I can save and read storage objects from with the main loop (using examples/bot.py) but I'm not sure how to do so from wtihin a command e.g. examples/commands/ping.py.
I've tried self.storage.save("key","value) and similarly context.storage.save("key","value").
error is ERROR:root:[PingCommand] Error: 'PingCommand' object has no attribute 'storage'
The text was updated successfully, but these errors were encountered:
I can save and read storage objects from with the main loop (using examples/bot.py) but I'm not sure how to do so from wtihin a command e.g. examples/commands/ping.py.
I've tried
self.storage.save("key","value)
and similarlycontext.storage.save("key","value")
.error is
ERROR:root:[PingCommand] Error: 'PingCommand' object has no attribute 'storage'
The text was updated successfully, but these errors were encountered: