Giter Club home page Giter Club logo

anonimalus's Introduction

Anonimalus

The Anonimalus



Description

Send anonymous messages to channels on servers where this bot is available. Also you can send anonymous messages directly to users who has at least one common server with this bot.

Commands

Command Syntax Description
dm !dm user_id message Send a message to user
send !send channel_id message Send a message to guild channel
howto !howto Show how to copy ids
help !help Show a short resume of bots features

It is also possible to send messages from this site page.

Project structure

  • Main codebase /*
    • Bot /lib/commands/*, /lib/EventHandler.js
    • Api /lib/api/*
  • Website /www

Both of them has their own node_modules

Quick start

Clone and install dependencies

git clone https://github.com/wvovaw/anonimalus.git
cd anonimalus
npm install

Register new discord app

  1. Go to devportal
  2. Create new app, go to bot section
  3. Copy a secret token
  4. Make sure SERVER MEMBERS INTENT option is enabled
  5. Save

Authentication

Create .env file and set DISCORD_TOKEN variable in there.

echo DISCORD_TOKEN="YourTokenGoesHere" > .env

Run bot

npm start

This setup runs localy on your machine, or on VDS/VPS

Deploying on Heroku

  1. Fork this repo
  2. Sign up on Heroku
  3. Connect your github
  4. Create new dino from your github repo
  5. Add DISCORD_TOKEN in variables (how to)
  6. Sign up here and create a cron job that will ping your app every 15-30 minutes to keep your app alive

Website

Developing

Go to /www directory and run

gridsome develop

It will run developing server with hot reload

Build and deploy

Compile the static website to /dist directory

npm run web-build

Before you perform deploying, add your repository as origin

git add origin https://github.com/yourname/reponame

Push the /dist dir to the remote on gh-pages branch. The site will be avaliable at https://yourname.github.io/anonimalus

npm run web-deploy

If you want to use the website to send messages

Make sure the last 2 lines is not commented out in app.js

const { start } = require('./lib/api/server');
start(eventHandler);

Change the url of POST request in Anonimalus\www\src\components\Form.vue

axios({
  method: 'post',
  url: 'https://yourappname.herokuapp.com/send',
  data: d
  })
  ...

anonimalus's People

Contributors

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