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

https://github.com/simpsonresearch/notify

Be notified when a message containing a specific word is sent in a discord server
https://github.com/simpsonresearch/notify

discord-bot rust sqlite

Last synced: 4 months ago
JSON representation

Be notified when a message containing a specific word is sent in a discord server

Awesome Lists containing this project

README

          

# Notify ![Stars](https://img.shields.io/github/stars/Simpson-Computer-Technologies-Research/Notify?color=brightgreen) ![Watchers](https://img.shields.io/github/watchers/Simpson-Computer-Technologies-Research/Notify?label=Watchers)
![banner](https://github.com/realTristan/Notify/assets/75189508/027cc097-4caf-45b4-9924-0e0249925463)

# About

Why Rust?

- This project was made for a person who messaged me about creating a discord bot for them. I wanted to learn Rust and I thought this would be a great project to do so.

- Aside from my desire to learn the language, I decided that Rust would be the best option for this project as iterating over the sqlite database rows for every message sent in a channel can take quite some time. Luckily Rust is extremely fast which makes
performing these iterations is not as time-consuming.

# Quick Usage

Running the bot

```rust
$ TOKEN="YOUR BOT TOKEN" DATABASE_URL="sqlite:database.sqlite" cargo run --release

```

# License
MIT License

Copyright (c) 2022 Tristan Simpson

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.