Coder Social home page Coder Social logo

pcsocbot's Introduction

PCSocBot

Bot for the UNSW PCSoc Discord. Stores tags for PCSoc, plays sweet tunes, and a whole bunch of other fun things.

Getting Started

Please refer to the GitHub Wiki for instructions on getting started.

pcsocbot's People

Contributors

1lann avatar biendeo avatar davids3 avatar dependabot[bot] avatar ericfzhu avatar hexus-one avatar joshwason1 avatar matts1 avatar morristhehorris avatar terryag avatar vineballoon avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

pcsocbot's Issues

Invalid users in tag pings

Invalid users display in the ask pings, need to add check to see if they are still in the server before displaying.

Also need to fix modremove so we can remove users who have left the server, and optionally make it so they don't display on platform and user lists either.

Screenshot_20190513-081620

[Go] Database

Choose and create higher-level bindings for database operations for use in commands like !tags

Create a command to list all restricted channels

The command should dynamically list each channel which requires a role to join and the command which toggles the role. This would replace the MEE6 command which needs to be manually updated.

[Go] Usage

Figure out some elegant way to generate usages for commands.

Set a PM string for role toggling commands

Add a generic way to set a string that the bot PMs to users after they use commands like !meta, !weeb etc. listing whichever different rules that may apply to that restricted channel. Then, !accept could be moved from MEE6 and the rule blurb can be PMed.

Line is too long

This line does not fit on many screens. Please ensure you conform to PEP8 standards.

def eval(self): return "Paging %s..." % random.choice([ x for x in list(self.members) if "mod" in [ str(y).lower() for y in x.roles ] ]).mention

[Go] Tags

Done, but here for posterity.

Implemented Matt's good idea of creating roles for each platform. Will consider revisiting if command gets abused.

Remindme feature

Using the command !remindme <hours> <request> I would like PCSocBot to remind me after x hours about my request.

[Go] !quote

Simple and straightforward command that will leverage the db. Good for testing the db API.

Ask for a random mod / exec

Dunno if people are still doing that, but I've seen plenty of calling for mods. Instead of calling @mod, instead call !mod, and it picks a random mod to ping (or random n mods). Could also limit to online mods. You've got nearly all the infrastructure set up for it with the Someone command.

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.