Giter Club home page Giter Club logo

dev_meme_bot's Introduction

dev_meme_bot

install dependencies

pip install -r requirements.txt

config

rename current config.json if it exists in the same directory as the main script.

run the script, it will create config for you. you should edit it.

if config has errors or missing keys, rename current config so script can create new one.

systemd service

simply drop it into /etc/systemd/system/

set the user field if your setup doesn't work system-wide

commands:

  • {user_joins} - greets them
  • /ping - check latency
  • /warns - check your warns or warns of a person you replied to

for trusted users:

  • /votekick - vote to kick a user (bot will ban after 3 votes) ((votes timeout after 24h))

for moderators:

  • /warn - add a warn to person
  • /unwarn - removes 1 warn from person
  • /clearwarns - clears all warns
  • /trust - adds a user to the trusted list
  • /untrust - remove a user from the trusted list

dev_meme_bot's People

Contributors

affirvega avatar mikaela avatar purplesyringa avatar riedlerod avatar yuki0iq avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar  avatar

dev_meme_bot's Issues

make bot less mean

so I was feeling a bit funny when making the bot. and it was funny at first, but you can only see "sucks to suck" so many times before it gets stale. And some users might genuinely have negative feelings when reading that, so we should put something else there. or just remove it. idk

point is:

  • check lines for rudeness
  • remove rudeness

Feature request: /votekick @username

modify '/votekick' so that votes can be casted to user mentioned after command, if :
1. command is not replied to a message
or
2. replied message is forwarded from a user that haa privacy restriction on accessing user through forwarded message

syntax: /kickvote @username

make bot able to warn channels

channels are currently visible as bots to the bot - we should be able to warn those as well though, so either find out how to differenciate channels from actual bots, or just make it accept warns against bots

/rules feature

when /rules is sent, the bot should reply with the rules. A few scenarios:

  • If person A sends /rules as a reply to message B, the bot should reply with the rules to message B
  • If person A sends /rules, the bot should reply to the message from person A

Also, /rules doesn't have any parameters and if any are provided (e.g. a mention), they should be ignored.

Feature request: /votestay and /unvote

unvote discards one's vote (probably with a mention or reply, as multiple votes may be held simultaneously)

votestay compenstaes votekick of another trusted one -- idk whats the use case for this, just the random idea

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.