discordwordlebot's People
discordwordlebot's Issues
Shortened game mode commands
RogueBurger: "Could set up %puzzle and %limited with %z
and %l
as their shorthand, and have them both call start() with the appropriate settings. Shouldn't be too hard."
HoboChili: "i think a good start would be to implement the exact thing that (i think) you requested. make a new command, %z or %p that essentially serves as a wrapper for %s puzzle"
Bot loses lock occasionally
While using the bot normally, every once in a while this exception will pop up when trying to execute a command: A restart seems to be required to fix the issue and reacquire a lock.
wordle-app-1 | 2022-02-01 15:52:26,739 DEBU [WordleBot.Wordle] New game started: overfishes
wordle-redis-1 | 1:M 01 Feb 2022 15:54:52.972 * 100 changes in 300 seconds. Saving...
wordle-redis-1 | 1:M 01 Feb 2022 15:54:52.973 * Background saving started by pid 96
wordle-redis-1 | 96:C 01 Feb 2022 15:54:52.977 * DB saved on disk
wordle-redis-1 | 96:C 01 Feb 2022 15:54:52.977 * RDB: 0 MB of memory used by copy-on-write
wordle-redis-1 | 1:M 01 Feb 2022 15:54:53.073 * Background saving terminated with success
wordle-app-1 | Ignoring exception in on_message
wordle-app-1 | Traceback (most recent call last):
wordle-app-1 | File "/usr/local/lib/python3.9/site-packages/discord/ext/commands/bot.py", line 939, in invoke
wordle-app-1 | await ctx.command.invoke(ctx)
wordle-app-1 | File "/usr/local/lib/python3.9/site-packages/discord/ext/commands/core.py", line 863, in invoke
wordle-app-1 | await injected(*ctx.args, **ctx.kwargs)
wordle-app-1 | File "/usr/local/lib/python3.9/site-packages/discord/ext/commands/core.py", line 94, in wrapped
wordle-app-1 | raise CommandInvokeError(exc) from exc
wordle-app-1 | discord.ext.commands.errors.CommandInvokeError: Command raised an exception: LockNotOwnedError: Cannot release a lock that's no longer owned
wordle-app-1 |
wordle-app-1 | During handling of the above exception, another exception occurred:
wordle-app-1 |
wordle-app-1 | Traceback (most recent call last):
wordle-app-1 | File "/usr/local/lib/python3.9/site-packages/discord/ext/commands/core.py", line 71, in wrapped
wordle-app-1 | ret = await coro(*args, **kwargs)
wordle-app-1 | File "/srv/Wordle/Wordle.py", line 41, in cog_command_error
wordle-app-1 | raise err
wordle-app-1 | File "/usr/local/lib/python3.9/site-packages/discord/ext/commands/core.py", line 85, in wrapped
wordle-app-1 | ret = await coro(*args, **kwargs)
wordle-app-1 | File "/srv/Wordle/Wordle.py", line 114, in guess
wordle-app-1 | return await ctx.send(message)
wordle-app-1 | File "/usr/local/lib/python3.9/contextlib.py", line 199, in __aexit__
wordle-app-1 | await self.gen.athrow(typ, value, traceback)
wordle-app-1 | File "/srv/Wordle/GameManager.py", line 27, in lock
wordle-app-1 | yield
wordle-app-1 | File "/usr/local/lib/python3.9/contextlib.py", line 199, in __aexit__
wordle-app-1 | await self.gen.athrow(typ, value, traceback)
wordle-app-1 | File "/srv/Wordle/Store/Redis/RedisStore.py", line 34, in lock
wordle-app-1 | yield
wordle-app-1 | File "/usr/local/lib/python3.9/site-packages/aioredis/lock.py", line 165, in __aexit__
wordle-app-1 | await self.release()
wordle-app-1 | File "/usr/local/lib/python3.9/site-packages/aioredis/lock.py", line 255, in do_release
wordle-app-1 | raise LockNotOwnedError("Cannot release a lock" " that's no longer owned")
wordle-app-1 | aioredis.exceptions.LockNotOwnedError: Cannot release a lock that's no longer owned
wordle-app-1 |
wordle-app-1 | The above exception was the direct cause of the following exception:
wordle-app-1 |
wordle-app-1 | Traceback (most recent call last):
wordle-app-1 | File "/usr/local/lib/python3.9/site-packages/discord/client.py", line 343, in _run_event
wordle-app-1 | await coro(*args, **kwargs)
wordle-app-1 | File "/srv/Main.py", line 72, in on_message
wordle-app-1 | await bot.process_commands(msg)
wordle-app-1 | File "/usr/local/lib/python3.9/site-packages/discord/ext/commands/bot.py", line 976, in process_commands
wordle-app-1 | await self.invoke(ctx)
wordle-app-1 | File "/usr/local/lib/python3.9/site-packages/discord/ext/commands/bot.py", line 943, in invoke
wordle-app-1 | await ctx.command.dispatch_error(ctx, exc)
wordle-app-1 | File "/usr/local/lib/python3.9/site-packages/discord/ext/commands/core.py", line 431, in dispatch_error
wordle-app-1 | await wrapped(ctx, error)
wordle-app-1 | File "/usr/local/lib/python3.9/site-packages/discord/ext/commands/core.py", line 77, in wrapped
wordle-app-1 | raise CommandInvokeError(exc) from exc
wordle-app-1 | discord.ext.commands.errors.CommandInvokeError: Command raised an exception: LockNotOwnedError: Cannot release a lock that's no longer owned
Implement a mode where each person only gets one guess
This could be done two ways:
- Only allow one guess per person, per round
- Only allow players to guess at max every other word (or every 3rd)
The reason I would pick 2 is because if you started a game like 1) and you only had 2 people interested, you couldn't do words with more than 2 letters, etc etc. Very limiting.
Add number of guesses left when playing a limited round
Add "%ph"/"hp" command that prints AND hints all at once
Standardize success and failure line breaks
Remove extra blank failure follow-up
In RandomText, there is a blank ''
follow-up text that I left in.
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. ๐๐๐
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google โค๏ธ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.