Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/snacksncode/snacky
My first ever Discord Bot. Written in Typescript + Node.js
https://github.com/snacksncode/snacky
discord discord-bot discord-js
Last synced: 4 days ago
JSON representation
My first ever Discord Bot. Written in Typescript + Node.js
- Host: GitHub
- URL: https://github.com/snacksncode/snacky
- Owner: snacksncode
- License: gpl-3.0
- Created: 2020-10-15T16:57:39.000Z (over 4 years ago)
- Default Branch: v3
- Last Pushed: 2021-12-01T13:21:57.000Z (about 3 years ago)
- Last Synced: 2023-03-11T18:56:55.419Z (almost 2 years ago)
- Topics: discord, discord-bot, discord-js
- Language: TypeScript
- Homepage:
- Size: 418 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
[![GitHub license](https://badgen.net/github/license/ottrone/lexbot)](LICENSE)
Snacky v3
**Now with Slash Commands!**
My first ever Discord Bot written in TypeScript
# Table of Contents
- [Features](#features)
- [Invite](#invite)
- [Running locally](#running)
- [Known issues](#issues)Snacky is a little bot that I've written for my own server and overall just for the sake of working with Discord.js, TypeScript and Node.js. It's not super complicated as of right now but I'll be adding features as I go.
### Avaible commands
| Category | Commands |
| ----------- | -------- |
| Information | ping |
Invite Snacky to your discord server
You can use [this](https://discord.com/oauth2/authorize?client_id=765660664956977182&scope=bot&permissions=8) link to invite him to your server. Currently bot has only one instance running on Heroku. Sometimes when I'm developing new features he'll be offline.
If you want to get your own version of the bot up and running you can use this section to guide you.
1. Go to [Discord's Dev Portal](https://discord.com/developers) and create a new application there. Then add a bot to this application and copy your bot token from there.
2. Clone Snacky's code and install all needed packages```bash
# by using yarn
yarn install
# or npm
npm install
```Also create a `.env` file in root directory with those contents
```env
TOKEN=[PUT YOUR TOKEN HERE]
```After that your own instance of the bot should be ready to launch. To start the bot just use the start script.
```bash
yarn start
# or
npm run start
```Don't forgot to invite him to your testing server.
If you're on windows you might get an error about `ts-node` not being defined. In this case install this package globally
Known issues
To be written