-
-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #101 from LizardByte/nightly
v0.1.1
- Loading branch information
Showing
14 changed files
with
232 additions
and
73 deletions.
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
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
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 |
---|---|---|
|
@@ -36,6 +36,19 @@ jobs: | |
outputs: | ||
dockerfile: ${{ steps.check.outputs.dockerfile }} | ||
|
||
lint_dockerfile: | ||
name: Lint Dockerfile | ||
needs: [check_dockerfile] | ||
if: ${{ needs.check_dockerfile.outputs.dockerfile == 'true' }} | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Lint Dockerfile | ||
uses: actions/checkout@v3 | ||
|
||
- uses: hadolint/[email protected] | ||
with: | ||
dockerfile: ./Dockerfile | ||
|
||
check_changelog: | ||
name: Check Changelog | ||
needs: [check_dockerfile] | ||
|
@@ -68,6 +81,8 @@ jobs: | |
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
with: | ||
submodules: recursive | ||
|
||
- name: Prepare | ||
id: prepare | ||
|
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
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
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
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
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 @@ | ||
# standard imports | ||
from io import BytesIO | ||
import os | ||
|
||
# lib imports | ||
import requests | ||
|
||
# local imports | ||
from discord_helpers import get_bot_avatar | ||
|
||
# avatar | ||
avatar = get_bot_avatar(gravatar=os.environ['GRAVATAR_EMAIL']) | ||
|
||
avatar_response = requests.get(url=avatar) | ||
avatar_img = BytesIO(avatar_response.content).read() |
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
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 @@ | ||
org_name = 'LizardByte' | ||
bot_name = f'{org_name}-Bot' | ||
bot_url = 'https://app.lizardbyte.dev' |
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,21 @@ | ||
# lib imports | ||
import discord | ||
|
||
|
||
class RefundModal(discord.ui.Modal): | ||
""" | ||
Class representing `discord.ui.Modal` for ``refund`` slash command. | ||
""" | ||
def __init__(self, *args, **kwargs) -> None: | ||
super().__init__(*args, **kwargs) | ||
|
||
self.add_item(discord.ui.InputText(label="Name")) | ||
self.add_item(discord.ui.InputText(label="Email")) | ||
self.add_item(discord.ui.InputText(label="Purchase Date")) | ||
|
||
async def callback(self, interaction: discord.Interaction): | ||
embed = discord.Embed(title="Refund request completed", | ||
description="Your refund is being processed!") | ||
embed.add_field(name="Original price", value="$0.00") | ||
embed.add_field(name="Refund amount", value="$0.00") | ||
await interaction.response.send_message(embeds=[embed]) |
Oops, something went wrong.