Coder Social home page Coder Social logo

notice-bot's Introduction

Notice Bot

English | 繁體中文

A Discord Bot that automatically sends daily event countdown messages to a specified channel on a designated server and mentions a specific role.

icon

Introduction

Here are the required files for this Discord bot, along with descriptions for each file:

  • bot.py
    The main code for the bot in English.
  • date.json
    Used to save data for all events, including event names and dates.
  • send.txt
    Used to record the last time a notification was sent.

Tutorial

Before running the bot, please configure bot.py using the following steps:

  1. Fill in your Discord Bot's TOKEN in the TOKEN.
  2. Obtain the server ID and channel ID where you want to send messages. Fill in GUILD_ID and CHANNEL_ID respectively.
  3. Enter the role name you want to mention in the ROLE_NAME.
  4. Set the message sending time. The default is every day at midnight. The four values from left to right represent hour, minute, second, and millisecond.
  5. Set the time interval for checking. The default is to check every 60 seconds whether it's time to send the message.

After configuration, run bot.py, and you can start using the bot!

Command Description

  • help !help command
    Inquire about the syntax of a specific command.
    Example: !help add
  • test !test
    Test the bot's running status, if it's running correctly, it will return Alive.
  • add !add yyyy-mm-dd name
    Add an event named "name".
    Example: !add 2023-01-01 Birthday
  • delete !delete name
    Delete the event named "name".
    Example: !delete Birthday
  • check !check
    Query the currently existing events.

notice-bot's People

Contributors

blueboy247 avatar

Watchers

 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.