Coder Social home page Coder Social logo

professor-callery's Introduction

Summary

This is a fork of the Professor Redwood bot for the UCSB/IV/Goleta area.

How do I contribute?

Create an issue/discussion, and make a pull request!

How do I get set up?

To run this bot you will need a ES6 node environment. The bot currently does not have database functions.

  1. Create a role called mod and give it the following privileges:
  • Display role members separately from online members
  • Manage Roles
  • Check all boxes under Text Permissions
  1. Create roles (this will take a while):
  • currently roles must be completely lowercase or youre going to have a bad time see Professor-Redwood-Team/Professor-Redwood#22
  • valor, instinct, and mystic: all with at least: Display role members seperately, Read & Send Messages (recommend unchecking Mention Everyone), and color each team appropriately
  • create one role for each region that you plan to use. Regions consist of multiple channels. Channels consist of multiple neighborhoods. Examples in SF are: sf, peninsula, sanjose, eastbay
  • create a role named 'allregions'
  • create a role for each rare pokemon, Tier 3-5 raid boss, and 'highiv', 'legendary', 'finalevo', 'exgym'. All of these roles must have the 'allow anyone to @mention this role' permission set!
  1. Create Channels:
  • professor_redwood (a channel specifically for bot commands) - @everyone may Read & Send messages
  • gymraids_alerts (required for alert forwarding) - only admin/mod/3 teams should have Send Message privilege, @everyone should have no privilege
  • start_here (required for instructing users on bot usage) - only admin/mod roles should have Send Message privilege, @everyone should have Read only
  • neighborhood channels! When creating these, make sure to use '-' in each name, even if it's at the beginning or end. Proper examples are pier39-marina and sanjose- -- make sure to only allow allregions and the appropriate region role to access each channel
  • regional gym channels, each region role you created should have a corresponding gym channel, called gymraids_ + the name of your region role
  1. Create your bot
  • Go to your discord developers page: https://discordapp.com/developers/applications/me
  • Click New App
  • Under App Name, type 'Professor Redwood', or another name for your bot
  • Click Create App
  • Click Create a Bot User
  • Under App Details, click to reveal the Token (This is your token needed for the bot code!)
  • Copy the Token, and paste it into your secrets.js file under BOTID
  • Now, copy the Client ID and paste it into this URL: https://discordapp.com/oauth2/authorize?&client_id=<CLIENT ID>&scope=bot&permissions=0
  • Choose the name of your Discord server
  • Authorize the Bot!
  • Go to the Server Settings for your discord, and search for a user/member, find your bot and grant it mod privileges
  1. Go to the config folder and create a secrets.json. Follow instructions in the config/readme.txt.
  2. Change relevant config settings in the config folder.
  3. Install node packages with npm install
  4. Run your bot: npm start

professor-callery's People

Contributors

cub01d avatar stefangimmillaro avatar pjlangsam avatar awilbur avatar mralanlee avatar pbk01 avatar fmoo avatar jimleeisme avatar

Watchers

James Cloos avatar  avatar

professor-callery's Issues

Direct messaging bugs

When a user dm's the prof, they get this message, which keeps going on until the bot is shut down.

I currently have no direct message functions. Please go to channel #start_here
I currently have no direct message functions. Please go to channel #start_here
I currently have no direct message functions. Please go to channel #start_here
I currently have no direct message functions. Please go to channel #start_here
I currently have no direct message functions. Please go to channel #start_here

The prof seems confused, maybe interpreting its own messages as the user's dm?

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.