import discord
import duckbot_settings
import random
from discord.ext import commands

_DESCRIPTION = '''quack'''

bot = commands.Bot(command_prefix='/', description=_DESCRIPTION)

@bot.event
async def on_ready():
	print('logged in: %s (%s)' % (bot.user.name, bot.user.id))
	
	oauth_url = discord.utils.oauth_url(duckbot_settings.CLIENT_ID, permissions=discord.Permissions.text())
	print('invite me: %s' % oauth_url)

	print('Channels:')

	channels = bot.get_all_channels()
	for channel in channels:
		print('%s (%s)' % (channel.name, channel.id))
		if channel.name == 'botspam':
			await bot.send_message(channel, 'quack!! (ready to roll)')

@bot.command()
async def roll():
	await bot.say('pretending to roll')

bot.run(duckbot_settings.TOKEN)

import discord
import duckbot_settings
import random
from discord.ext import commands

_DESCRIPTION = '''quack'''

bot = commands.Bot(command_prefix='/', description=_DESCRIPTION)
rand = random.SystemRandom()

@bot.event
async def on_ready():
	print('logged in: %s (%s)' % (bot.user.name, bot.user.id))
	
	oauth_url = discord.utils.oauth_url(duckbot_settings.CLIENT_ID, permissions=discord.Permissions.text())
	print('invite me: %s' % oauth_url)

	print('Channels:')

	channels = bot.get_all_channels()
	for channel in channels:
		print('%s (%s)' % (channel.name, channel.id))
		if channel.name == 'botspam':
			await bot.send_message(channel, 'quack!! (ready to roll)')

@bot.command()
async def roll():
	lower_bound = 1
	upper_boundb = 6
	await bot.say('🎲 (%d-%d): %d' % (lower_bound, upper_bound, rand.randint(lower_bound, upper_bound)))

bot.run(duckbot_settings.TOKEN)

Add a real roll command
Add a real roll command

  import discord
  import duckbot_settings
  import random
  from discord.ext import commands
  
  _DESCRIPTION = '''quack'''
  
  bot = commands.Bot(command_prefix='/', description=_DESCRIPTION)
+ rand = random.SystemRandom()
  
  @bot.event
  async def on_ready():
  	print('logged in: %s (%s)' % (bot.user.name, bot.user.id))
  	
  	oauth_url = discord.utils.oauth_url(duckbot_settings.CLIENT_ID, permissions=discord.Permissions.text())
  	print('invite me: %s' % oauth_url)
  
  	print('Channels:')
  
  	channels = bot.get_all_channels()
  	for channel in channels:
  		print('%s (%s)' % (channel.name, channel.id))
  		if channel.name == 'botspam':
  			await bot.send_message(channel, 'quack!! (ready to roll)')
  
  @bot.command()
  async def roll():
- 	await bot.say('pretending to roll')
+ 	lower_bound = 1
+ 	upper_boundb = 6
+ 	await bot.say('🎲 (%d-%d): %d' % (lower_bound, upper_bound, rand.randint(lower_bound, upper_bound)))
  
  bot.run(duckbot_settings.TOKEN)
  
Add a real roll command
## Code Before:
import discord
import duckbot_settings
import random
from discord.ext import commands

_DESCRIPTION = '''quack'''

bot = commands.Bot(command_prefix='/', description=_DESCRIPTION)

@bot.event
async def on_ready():
	print('logged in: %s (%s)' % (bot.user.name, bot.user.id))
	
	oauth_url = discord.utils.oauth_url(duckbot_settings.CLIENT_ID, permissions=discord.Permissions.text())
	print('invite me: %s' % oauth_url)

	print('Channels:')

	channels = bot.get_all_channels()
	for channel in channels:
		print('%s (%s)' % (channel.name, channel.id))
		if channel.name == 'botspam':
			await bot.send_message(channel, 'quack!! (ready to roll)')

@bot.command()
async def roll():
	await bot.say('pretending to roll')

bot.run(duckbot_settings.TOKEN)

## Instruction:
Add a real roll command
## Code After:
import discord
import duckbot_settings
import random
from discord.ext import commands

_DESCRIPTION = '''quack'''

bot = commands.Bot(command_prefix='/', description=_DESCRIPTION)
rand = random.SystemRandom()

@bot.event
async def on_ready():
	print('logged in: %s (%s)' % (bot.user.name, bot.user.id))
	
	oauth_url = discord.utils.oauth_url(duckbot_settings.CLIENT_ID, permissions=discord.Permissions.text())
	print('invite me: %s' % oauth_url)

	print('Channels:')

	channels = bot.get_all_channels()
	for channel in channels:
		print('%s (%s)' % (channel.name, channel.id))
		if channel.name == 'botspam':
			await bot.send_message(channel, 'quack!! (ready to roll)')

@bot.command()
async def roll():
	lower_bound = 1
	upper_boundb = 6
	await bot.say('🎲 (%d-%d): %d' % (lower_bound, upper_bound, rand.randint(lower_bound, upper_bound)))

bot.run(duckbot_settings.TOKEN)
