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

https://github.com/ninjascl/wrenbot

A simple discord bot that executes Wren code
https://github.com/ninjascl/wrenbot

discord java spring-boot wren

Last synced: 3 months ago
JSON representation

A simple discord bot that executes Wren code

Awesome Lists containing this project

README

          

:ext-relative:
:toc: macro
:toclevels: 3

++++

Wren Bot πŸͺΆ



Seagull icons created by Freepik - Flaticon


Example Run Image


++++

https://ninjas.cl[image:https://img.shields.io/badge/Ninjas-CL-green.svg?style=flat-square[Ninjas.cl]] https://www.mozilla.org/en-US/MPL/2.0/[image:https://img.shields.io/github/license/ninjascl/wrenbot.svg?style=flat-square[MPL v2]] https://github.com/NinjasCL/wrenbot/actions?query=workflow%3A%22Execute+Tests+Suite%22[image:https://img.shields.io/github/workflow/status/ninjascl/wrenbot/Execute%20Tests%20Suite?label=tests&style=flat-square[Tests]]

toc::[]

## πŸš€ Environment setup

### Requirements

- https://spring.io/projects/spring-boot[Spring Boot]
- https://www.oracle.com/java/technologies/downloads/[JRE 11]+
- https://github.com/wren-lang/wren-cli[WrenCLI] or https://github.com/joshgoebel/wren-console[Wren Console] executable

#### application.properties
Configure your https://discord.com/developers/applications[discord token] and wren-cli executable path inside https://github.com/NinjasCL/wrenbot/blob/main/src/main/resources/application.properties[application.properties]

#### Run

Execute
```sh
./mvnw spring-boot:run
```

And then
https://www.alphr.com/add-bots-discord-server/[Add the bot to your server].

You can now send messages and it will return the output of the code.

## ☣️ Warning

Highly experimental, use at your own risk.

## πŸ‘©β€πŸ’» Project explanation

_Wrenbot_ is a small https://discord.com[Discord] bot created for testing out _Wren_ scripts inside _Discord_.

## πŸ“˜ License

Unless explicitily stated, all source code is under the permissive link:LICENSE.adoc{ext-relative}[MPL v2.0 (Mozilla Public License Version 2.0)] license.

Is a copyleft license that is easy to comply with. You can combine the _MPL version 2.0_ software with a proprietary or differently licensed code.

- If you don’t modify the code inside this library, you will have to provide just a link to the library sources.

- If you modify these libs, you will have to provide just the sources for the modified files (not the entire project).

### More Info

- https://www.mozilla.org/en-US/MPL/2.0/[Mozila MPL 2.0]
- https://en.wikipedia.org/wiki/Comparison_of_free_and_open-source_software_licences[OSS License Comparison]
- https://shakuro.com/blog/software-licenses-explained/[Software Licenses Explained]
- https://choosealicense.com/licenses/mpl-2.0/[Choose a License]

## 🀩 Credits

++++

Seagull icons created by Freepik - Flaticon


Made with β™₯ by

Ninjas.cl


++++