Git Product home page Git Product logo

discord-msg-poster's Introduction

Discord-Msg-Poster

This tool is usefull for posting messages in your Discord channel with beautifull embeds. You could also post several messages and files.

You don't know what embed is? You can visit special visualizer (Thanks to Leonardo Vieira)

Instalation

Bot is written on python 3 version, so you have to download it. Here is the official site where you can chooses version. Now bot was tested only with python 3.6 and 3.7.

Next step is to download required python packages. You can make it with this command:

pip3 install -r requirements.txt

Last step is to put evironment variables. Easiest way is to make .env file with command:

cp .env.example .env

About variables:

DEFAULT_DESTINATION - channel ID where you want to post your messages and/or files;

TEST_DESTINATION - channel ID where you want to post your messages and/or files and only you can see it; optional

TOKEN - Bot authentication token. You can read how to get such token here;

DEFAULT_DIR_NAME - Default name of directory where bot will save messages. (optional)

Run

To run app you have to run this command:

python3 start.py

It takes time to authenticate and then you are able to paste command after >

Possible commands are test, post, exit

test - send messages to channel with TEST_DESTINATION id

post - send messages to channel with DEFAULT_DESTINATION id

exit - terminate bot. promt you to save messages.

Bot takes messages and files from data directory. It scan all files except gitignore, examples and subdirectories

To send message you have to create json file (see message.json.example and visualizer)

To send file you have to just create such file. (note that you can't post json files)

discord-msg-poster's People

Contributors

devkalion 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.