Giter VIP home page Giter VIP logo

omardkhtestagain's Introduction

Sticky messages disocrd bot


Discord Sticky Message Bot


License

Bot preview

Features

  • embed ( Easily create an object embed message) messages and buttons, and supports normal messages as well
  • It stores local storage data in json files
  • Accurate because the last hands of a message sent by the bot are stored accurately

Contributing

  • I only welcome pull requests that fix bug, typo, or broken arabic.
  • If you want to add new feature to this bot, just fork this repository.

Getting Started

  1. Clone or download this repository
  2. Go to the folder where you clone or download this repository
  3. Type npm install or yarn install depend on what you use
  4. Rename .env.example to .env and fill that file. Below is the explanation.
token=(fill your bot token here)
  • Note for a project that you can run with more than one bot only by setting a new token value with any numbers or letters you want, for example
token2=(fill your bot 2 token here)
token3=(fill your bot 2 token here)
  • Note: You can write any number after the token, but the value must start with the word token, small letters
  • You can put any other value like embed-1 and make its value contain a string inside it the object of an embed message and when creating a sticky message you can write the name embed-1 to send this object of the message
embed-1="{\n  \"content\": \"test\",\n  \"embeds\": [\n    {\n      \"color\": 16711680,\n      \"timestamp\": \"\",\n      \"author\": {\n        \"name\": \"test\"\n      },\n      \"image\": {},\n      \"thumbnail\": {},\n      \"footer\": {},\n      \"fields\": []\n    }\n  ],\n  \"components\": [\n    {\n      \"type\": 1,\n      \"components\": [\n        {\n          \"type\": 2,\n          \"style\": 5,\n          \"label\": \"test\",\n          \"url\": \"https://www.npmjs.com/package/st.db\"\n        }\n      ]\n    }\n  ]\n}"

Usage

  • /sticky_set channel: #chat content: Welcome in Chat
  • /sticky_set channel: #chat content: embed-1
  • /sticky_remove channel: #chat

Requirements

Library That I Use

License

GNU GPLv3

omardkhtestagain's People

Contributors

shuruhatik avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.