Skip to content

Official Bot for the Clinify.in Discord Server

Notifications You must be signed in to change notification settings

AmeyWale/SleepBot

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Clinify Squad's SleepBot

Official Bot for the Clinify.in Discord Server written in Python using Discord.py

Though this bot is intended to be used only on the Clinify.in Discord Server, you can self host it in your server to test it out. Installation guide down below.

Dependancies

This bot requires the Discord.py v1.5+ library, pretty-help 1.1.2 and dpymenus 1.2 which can be installed using pip package manager.

How to host the bot

  1. Edit the i-channel_table.txt file in SQL_CMDS folder as required.
  2. Run the SQLite3_Py.py script to make the database file.
  3. Create a .env file in the same directory as Main.py and enter your Discord Bot Token like this:
DISCORD_TOKEN=Your Token Here
  1. Run Main.py to start the bot!

Note

This bot requires Server Members Intent so make sure to enable that by going to your Discord Application -> Bot -> Privilaged Gateway Intents and enabling Server Members Intent. Without this, bot won't be able to access the cache to get user names.

Changelogs

27 Jan 2020:

This changelog contains changelog of a few previous commits that I forgot to document because I am too lazy.

  1. Fix an issue wherein ?ask would not work if there is only one result (Credits: YogPanjarale).
  2. Add intent.guilds.
  3. Changes to rule_begins command.
  4. Removed ability to fetch other user's avatar due to complaints from users.

30 Dec 2020:

Probably the last update of the year.

  1. Added new cog: Rule.
  2. Added new command: rule_begins.
  3. rule_lookup has now been added to Rule cog instead.

29 Dec 2020:

  1. Added alias for top command: 'lb'.
  2. 'top' command no longer shows users who have left the server.

13 Dec 2020:

  1. 'ask' and 'howtoask' commands now use menus to display multiple items.
  2. Fixed typos in 'ask' command.

12 Dec 2020:

  1. Added new command 'ask' (Contributed by YogPanjarale).

07 Dec 2020:

  1. Removed .s as a prefix.

  2. Added top command. Use top instead to view the leaderboards.

06 Dec 2020:

  1. Bot will now ping the user you mention after running "howtoask" and "beforeyouask" commands.

04 Dec 2020:

  1. Added "howtoask" and "beforeyouask" commands (Recommended by Zircoz)

03 Dec 2020:

  1. Added "Flip a Coin" command (Contributed by parthivpatel1106).

28 Nov 2020:

  1. Using PrettyHelp as default help command.
  2. Added Avatar command to show the avatar of mentioned user.
  3. Added an About command.
  4. Added a new prefix '?'.

08 Nov 2020:

  1. Restricted points command to one channel. Running it in any other channel will show an error.
  2. Added new alises for points and give_points commands
  3. Added command logging. Bot will now send a message in the log channel with details about the command, the message content, message author, etc.

Upcoming Changes

  1. Transition to MongoDB.
  2. Add command to share coins with other users

Credits

This bot contains code from the following Repos:

  1. Robobert: For the Point.py, Util.py and SQL_CMDS

Special Thanks to JTexpo for helping me make this bot and letting me use parts of his code.

About

Official Bot for the Clinify.in Discord Server

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%