Skip to content

dehadeaaryan/discord-bot-maker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Introduction

Use this module to create professional discord bots in just a few lines of code. Created by Aaryan Dehade to fulfill the wishes of gamers who want an awesome custom bot for their discord server.

  • Short Code
  • Easy to Learn and Understand
  • Regular updates to functionality

Code Format

from discord_bot_maker import DBot

d = DBot(bTOKEN : str, bPrefix : tuple = ".", owner : str = FATHER, helpCommand : bool = True, baseCode : bool = True)

d.createCommand(trigger = trigger, reply = reply1, reply2 = reply2, emoji = emoji, image = link, help = help)

d.bRun()

Code Format (Shorter)

from discord_bot_maker import DBot

d = DBot(bTOKEN : str, bPrefix : tuple = ".", owner : str = FATHER, helpCommand : bool = True, baseCode : bool = True)

d + (trigger, reply1, reply2, emoji, link, help)

d()

Code Format (Shrotest)

from discord_bot_maker import DBot

with DBot(TOKEN) as d:
    d + (trigger, reply1, reply2, emoji, link, help)

Example Program

from discord_bot_maker import DBot

d = DBot(TOKEN)

d.createCommand(trigger = "jump", reply = "whoop!", reply2 = "I just jumped", emoji = "😄", image = "jumping.gif", help = "jumps")

d()

Extra Features

  • Get number of commands using len(d)
  • Get instance of bot using d.getBotInstance

(replace d with DBot object)

Internal Variables

  • Author
    • <author name>
    • <author mention>
    • <author display name>
    • <author discriminator>
  • Message
    • <message time>
    • <message content>
    • <message clean content>
  • Channel
    • <channel name>
    • <channel topic>
    • <channel category>
    • <channel mention>
  • Guild
    • <guild name>
    • <guild member count>
    • <guild description>
    • <guild features>
Use the above given variables as strings in reply or reply2

NOTE : Mentions will only work in reply2

Pre Made commands

  • commandHi(aliases : list, help : str, message : str, description : str, gif : str) Adds Hi Command
  • commandHelp(title : str, description : str) Adds Help Message Command

More Information

  • The Prefix Tuple can include as many prefixes as you may like
  • The TOKEN must be copied from Discord Developer Portal
  • You can create as many commands as you like
  • The bRun() command is required to run the bot(You can also call the object like so: d() if d is your DBot object)
Join our discord server here

version = 1.0.0

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages