Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/rsource-open-source/rsource-records
📊 The rsource Discord bot. An advanced interface for viewing community times.
https://github.com/rsource-open-source/rsource-records
detritus discord discord-bot nodejs strafesnet typescript
Last synced: 5 days ago
JSON representation
📊 The rsource Discord bot. An advanced interface for viewing community times.
- Host: GitHub
- URL: https://github.com/rsource-open-source/rsource-records
- Owner: rsource-open-source
- License: afl-3.0
- Created: 2021-06-08T01:44:51.000Z (over 3 years ago)
- Default Branch: dev
- Last Pushed: 2023-03-06T19:58:46.000Z (over 1 year ago)
- Last Synced: 2023-04-29T08:05:18.141Z (over 1 year ago)
- Topics: detritus, discord, discord-bot, nodejs, strafesnet, typescript
- Language: TypeScript
- Homepage: https://rsource.community/records
- Size: 399 KB
- Stars: 2
- Watchers: 0
- Forks: 1
- Open Issues: 14
-
Metadata Files:
- Readme: README.md
- Changelog: changelog.md
- License: LICENSE
- Security: SECURITY.md
Awesome Lists containing this project
README
```
__
______________ __ _______________ ________ _________ _________/ /____
/ ___/ ___/ __ \/ / / / ___/ ___/ _ \ / ___/ _ \/ ___/ __ \/ ___/ __ / ___/
/ / (__ ) /_/ / /_/ / / / /__/ __/ / / / __/ /__/ /_/ / / / /_/ (__ )
/_/ /____/\____/\__,_/_/ \___/\___/ /_/ \___/\___/\____/_/ \__,_/____/```
# rsource-records[![CodeFactor Grade](https://img.shields.io/codefactor/grade/github/rsource-open-source/rsource-records/dev?color=00b16a&style=for-the-badge)](https://www.codefactor.io/repository/github/rsource-open-source/rsource-records)
## Technologies:
[![](https://shields.io/badge/Typescript-05122A?logo=typescript&style=for-the-badge)](https://www.typescriptlang.org/) [![](https://shields.io/badge/Node.js-05122A?logo=node.js&style=for-the-badge)](https://nodejs.org/) [![](https://shields.io/badge/detritusjs-05122A?logo=data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiIHN0YW5kYWxvbmU9Im5vIj8+PCFET0NUWVBF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WMtMjcuNjE0LDM2LjQzOCAtNDEuNDIxLDczLjYxMSAtNDEuNDIxLDExMS41MTlsNzQuNTEsMGMtMCwtMTcuNjQ2IDkuNjQsLTM4LjM5OCAyOC45MjEsLTYyLjI1NWMzMi42OCwtNDAuNTIyIDUwLjQ5LC02My4yMzUgNTMuNDMyLC02OC4xMzdjMTkuMjgxLC0zMC43MTkgMjguOTIxLC02My4wNzIgMjguOTIxLC05Ny4wNTlabS05MS42NjcsMzgzLjgyNGwwLC0xMDIuOTQxbC0xMTMuNzI1LDBsLTAsMTAyLjk0MWwxMTMuNzI1LDBaIiBzdHlsZT0iZmlsbDojZmZmO2ZpbGwtcnVsZTpub256ZXJvOyIvPjwvc3ZnPg==&style=for-the-badge)](https://www.npmjs.com/package/detritus-client) [![](https://shields.io/badge/WebAssembly-05122A?logo=webassembly&style=for-the-badge)](https://webassembly.org/) [![](https://shields.io/badge/FFmpeg-05122A?logo=ffmpeg&logoColor=007808&style=for-the-badge)](http://www.ffmpeg.org/) [![](https://shields.io/badge/Prisma-05122A?logo=prisma&style=for-the-badge)](https://prisma.io/)
[![](https://shields.io/badge/Oracle%20Cloud%20Infrastructure%20VPC-05122A?logo=oracle&logoColor=F80000&style=for-the-badge)](https://www.oracle.com/cloud/) [![](https://shields.io/badge/Ubuntu%20Linux-05122A?logo=ubuntu&style=for-the-badge)](https://ubuntu.com/)
[![](https://shields.io/badge/DigitalOcean%20Managed%20Database-05122A?logo=digitalocean&style=for-the-badge)](https://www.digitalocean.com/products/managed-databases) [![](https://shields.io/badge/PostgreSQL-05122A?logo=postgresql&style=for-the-badge)](https://postgres.org/)
## About
rsource-records is a TypeScript written Discord bot that uses the [detritus library](https://github.com/detritusjs/client) to interact with the Discord API. This bot is made to fetch content from the Roblox Bhop & Surf games via the [StrafesNET API](https://api.strafes.net/). This aims to be a bot that has many more features than just an API fetcher in the future.**_This is still in its early development phase._**
Note: this project uses multiple branches, each are titled for their purpose. The project structure follows a production branch, developemnt bramch, and sub-dev branch; `main`, `dev`, and `dev/*`, where `*` represents any.
[Project Board](https://github.com/orgs/rsource-open-source/projects/1)
Shortlink for this repository: https://rsource.rqft.space/records/
## Setup
### Services
\*not in use yet
Requirements:
- [Node](https://nodejs.org/) v16 LTS
- [Git](https://git-scm.com/)
- [Prisma](https://prisma.io/)\*
- [PostgreSQL](https://postgresql.org/)\*What we use (optional services):
- Code editor/IDE: [VSCode](https://code.visualstudio.com/)
- Code loader: [nodemon](https://nodemon.io/)### Setting up
Creating a local copy of this repository and running:
```bash
git clone https://github.com/rsource-open-source/rsource-records.git # creates repository locally
cd rsource-records
```Now that we have the repository on our machine, let's populate it.
```bash
npm i # installs all dependencies
code .env # assuming you use vscode
```Populate the `.env` and the `config.json` file with the applicable interfaces [here](https://github.com/rsource-open-source/rsource-records/blob/main/src/interfaces.ts) and the [.env.example](https://github.com/rsource-open-source/rsource-records/blob/main/.env.example) file.
After that, we can compile and run the code, here, we use nodemon to run out code everytime we save a file, **if you don't want to use nodemon** run the according:
```bash
tsc # compiles OR npm run build
# create a split/seperate terminal
node dist
```Else:
```bash
tsc -w # compiles and watches for saves
# create a split/seperate terminal
nodemon dist
```This isn't required, but it is encouraged to clean up the throwaway files.
```bash
rm .env.example
```