Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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

Awesome Lists containing this project

README

        

[![GitHub license](https://badgen.net/github/license/ottrone/lexbot)](LICENSE)


Avatar


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)

Features

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.

Running Snacky locally

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