-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* set up workspace * poetry setup * simple bot start * makefile * missing newlines
- Loading branch information
1 parent
ab8fd5c
commit 61e122e
Showing
9 changed files
with
801 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
name: black-action | ||
on: [push, pull_request] | ||
jobs: | ||
linter_name: | ||
name: runner / black formatter | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: rickstaa/action-black@v1 | ||
with: | ||
black_args: ". --check" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
{ | ||
"recommendations": ["ms-python.black-formatter", "ms-python.isort"] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
{ | ||
"[python]": { | ||
"editor.defaultFormatter": "ms-python.black-formatter", | ||
"editor.formatOnSave": true, | ||
"editor.codeActionsOnSave": { | ||
"source.organizeImports": "explicit" | ||
} | ||
}, | ||
"python.formatting.provider": "black", | ||
"isort.args": [ | ||
"--profile", | ||
"black" | ||
], | ||
"python.analysis.typeCheckingMode": "basic" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
activate: | ||
@echo "Activating virtual environment" | ||
@source venv/bin/activate | ||
|
||
deps: | ||
@echo 'Installing requirements' | ||
@poetry install | ||
|
||
run: | ||
@echo 'Running the application' | ||
@poetry run python beep_booper | ||
|
||
# Personally I use Doppler for managing secrets and configs, so I have a target for that | ||
doppler: | ||
@echo 'Running the application with Doppler' | ||
@poetry run doppler run -- python beep_booper |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
# beep-booper | ||
# beep-booper |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
import discord | ||
import os | ||
|
||
intents = discord.Intents.default() | ||
intents.message_content = True | ||
|
||
client = discord.Client(intents=intents) | ||
|
||
|
||
@client.event | ||
async def on_ready(): | ||
print(f"We have logged in as {client.user}") | ||
|
||
|
||
client.run(os.getenv("DISCORD_TOKEN", "")) |
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
[tool.poetry] | ||
name = "beep-booper" | ||
version = "0.1.0" | ||
description = "" | ||
authors = ["PerpetualPossum <[email protected]>"] | ||
readme = "README.md" | ||
package-mode = false | ||
|
||
[tool.poetry.dependencies] | ||
python = "^3.10" | ||
isort = "^5.13.2" | ||
discord-py = {version = "^2.3.2", extras = ["voice"]} | ||
black = "^24.2.0" | ||
|
||
|
||
[build-system] | ||
requires = ["poetry-core"] | ||
build-backend = "poetry.core.masonry.api" |
Empty file.