Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 17 additions & 0 deletions .devcontainer/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
ARG VARIANT=latest
FROM oven/bun:${VARIANT}

RUN apt-get update \
&& apt-get -y install --no-install-recommends \
sudo \
curl \
git \
nano \
ssh \
vim-tiny \
&& apt-get auto-remove -y \
&& apt-get clean -y \
&& chsh -s $(which bash) bun \
&& echo 'export PS1="\e[01;32m\u\e[m:\e[01;34m\w\e[m\$ "' >> /home/bun/.bashrc

USER bun
20 changes: 20 additions & 0 deletions .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
{
"name": "AniList Discord Search Bot",
"build": {
"dockerfile": "Dockerfile",
// Update 'VARIANT' to pick a Bun version.
"args": {
"VARIANT": "latest"
}
},
"customizations": {
"vscode": {
"extensions": [
"dbaeumer.vscode-eslint",
"GitHub.copilot",
"eamodio.gitlens",
"rangav.vscode-thunder-client"
]
}
}
}
7 changes: 6 additions & 1 deletion .env.example
Original file line number Diff line number Diff line change
@@ -1,2 +1,7 @@
TOKEN=DISCORD_TOKEN_HERE
PREFIX=!
CLIENT_ID=your-application-id-goes-here
# GUILD_ID is only used in dev phase to test out slash command changes faster.
# Globally updating slash commands can take some time to roll out.
GUILD_ID=your-server-id-goes-here
# Set this to 1 in case you want to deploy commands when starting the bot anew.
DEPLOY_COMMANDS=0
2 changes: 1 addition & 1 deletion .eslintrc.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"extends": "eslint:recommended",
"parserOptions": {
"ecmaVersion": "2019"
"ecmaVersion": "2023"
},
"env": {
"node": true
Expand Down
4 changes: 4 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
ARG VARIANT=latest
FROM oven/bun:${VARIANT}

CMD [ "bun", "src/index.ts" ]
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<h3 align="center">AniList Discord Bot</h3>
<p align="center">A simple Discord bot for searching AniList.co</p>
<p align="center">A simple Discord bot for searching <a href="https://AniList.co">AniList.co</p>

---

Expand All @@ -11,8 +11,8 @@

### Requirements

- Node v12.0.0 or higher
- A Discord developer account
- Node v12.0.0 or higher
- A Discord developer account

### Getting Started

Expand All @@ -27,7 +27,7 @@

### Prefix

Type: `string`<br>
Type: `string`
Default: `!`

This determines what should prefix the commands that are recognized by the bot.
Expand Down
Binary file added bun.lockb
Binary file not shown.
Loading