A bot to serve drinks
pip install -r requirements.txt
cp .env.example .env
- Set
TOKEN
to your bot's token - Set
SERVER_ID
to your discord server id
- Set
Simplify Drink.py
.
Currently Drink.py
stores the name and article of a drink separately and uses some logic to generate the appropriate article for the drink based on the entry in drinks.txt
. The only usage of Drink then concatenates the article and name together, making this logic superfluous.
drinks.txt
. This will be specified explicitly in the format article|name
, or be a/an
if no article is specified.Drink
dataclass.hydrate
method and just use the value from the file directly.main.py
instead of attempting to concatenate the article and name.Enable separation of production and development environments by extracting the server id to an uncommitted file.
server_id.txt
in both environments with the server id in.main.py
read in the server id from a file in the Client setup_hook
method.README.md
explaining this setupRun all tests every time a branch is pushed so we don't accidentally break them without noticing
Add a github workflow that runs tests on push.
The existing code doesn't work with the discord.py v2.3.2 and needs upgrading.
requirements.txt
specifying the discord.py version.#Goal
#Solution
Roles we want
Role
/Start Game
Quests
Persistent knowledge of current quest and its state handled by writing to a file (.JSON)
Proposal Phase
Quest Phase
Candidates can become voters
Once candidates have voted:
quest-create: creates a quest unless there's an active quest
quest-display: displays active quest if any
quest-vote-approval: creates a dialogue to vote on the current quest (approve/veto)
quest-vote-succeed: creates a dialogue to vote on the current quest (success/fail)
quest-close: forces current quest to close (use for mistakes)
game-create: starts a new game
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.