Can ANYONE help me make an application (Bot) on a discord server. I only got to a certain point, but now I'm stuck.
I can try... buuuuut idk howðŸ˜
huh
Are you asking how to make a bot from scratch or..? /genq
not much context here
Ask aratox
yeah aratox is a cs goat
All I got was a link, no context to it
oh
Ask him to give you context then…
Or just look it up on YT
I dunno I had it save to my files on my discord server
I used it
let me ask my friend he an expert at this
https://discord.com/developers/applications go here alright so you make a new application, click it to create oh and name it go to the bot section and choose add bot from discord.ext import commands import discord import os bot = commands.Bot(command_prefix='!', intents=discord.Intents.all()) @bot.command() async def greet(ctx: commands.Context): await ctx.send('Hello there!') @bot.event async def on_ready(): print(f"{discord.utils.oauth_url(bot.user.id, permissions=discord.Permissions.all())}") bot.run(os.environ["DICORD_BOT_TOKEN"])
import discord from discord.ext import commands class MyBot(commands.Bot): async def setup_hook(self): try: synced = await self.tree.sync() except discord.HTTPException as e: print(f"Failed to sync commands: {e}") else: print(f"Synced {len(synced)} commands") bot = MyBot(command_prefix="!", intents=discord.Intents.all()) @bot.command() async def greet(ctx: commands.Context, member: discord.Member): await ctx.send(f'Hello there {member.mention}') @bot.tree.command(name="ping") async def ping(ctx: discord.Interaction): await ctx.response.send_message("Pong!") @bot.hybrid_command() async def echo(ctx: commands.Context, message: str): await ctx.send(message) @bot.event async def on_ready(): print(f"{discord.utils.oauth_url(bot.user.id, permissions=discord.Permissions.all())}") bot.run("YOUR TOKEN HERE")
To create a Discord bot, you would have to go to their Developer page (discord.com/developers), create an application, and enable message intents. (There are more steps required, however I do not have access to my PC as of right now - I'll post the rest once I have my PC at hand.) After you create an application and invite it to your server, you'll need to CODE an actual bot... I do have a Replit bot template which you can use if necessary (THIS REQUIRES YOUR BOT'S TOKEN, DO NOT SHARE IT WITH ANYONE):
No, you did not explain in detail - there's a difference.
Join our real-time social learning platform and learn together with your friends!