Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import random
- import discord
- from discord import ChannelType
- from discord.ext import commands
- import smoll_methods
- import steam_account_value
- import github_thingy
- bot = commands.Bot(command_prefix='do.', description='Here are all the command available at the moment')
- @bot.event
- async def on_ready():
- await bot.change_presence(game=discord.Game(name="do.help for help", type=1))
- print('Logged in as')
- print(bot.user.name)
- print(bot.user.id)
- print('---------')
- @bot.event
- async def on_member_join(member):
- await bot.send_message(destination=member,
- content="Welcome to/Bienvenue dans {}!".format(member.server.name))
- role = discord.utils.get(member.server.roles, name="Kohai")
- await bot.add_roles(member, role)
- @bot.command()
- async def add(left: int, right: int):
- """
- Name of command: add
- Description: adds two numbers together then gives the answer
- Parameters: two integers separated by spaces
- Exemple: `do.add 1 1` outputs `2`
- """
- await smoll_methods.add_number_together(bot, left, right)
Advertisement
Add Comment
Please, Sign In to add comment