- Joined
- May 10, 2021
- Messages
- 1,164
- Points
- 136
- IGN
- TNTSabeel
Noice
what ?Noice
as a guy who hates python but understands English , bruh@bot.event async def on_ready(): print("Python is better than JS")
yes extremely high quality codeclient.on("ready", () => { while ( 2 > 1) { console.log("no bot 4 u"); } });
from wildabbee
I don't understand what it is but it is something. Noicewhat ?
# Directory : C:\User\name\Desktop\Jartex Community Bot\bot.py
import discord
from discord.ext import commands
bot = commands.Bot(command_prefix="?", description="A JartexNetwork Community Bot", case_insensitive=true)
@bot.event
async def on_ready():
print("Python is better than JS")
@bot.command()
async def hello(ctx):
await ctx.send("Hello " + ctx.author.mention + "!")
# this can be done in a much simpler way. But the above is just basic code
#"complex code"
# await ctx.send(f"Hello {ctx.author.mention}!")
# Output: Hello @Nuggets#0001!
# Loading Cogs
for filename in os.listdir('./cogs'):
if filename.endswith('.py'):
bot.load_extension(f'cogs.{filename[:-3]}')
bot.run("token")
# Directory : C:\User\name\Desktop\Jartex Community Bot\cogs\Moderation.py
import discord
from discord.ext import commands
class Moderation(commands.Cog):
def __init__(self, bot):
self.bot = bot
# Now making commands
@commands.command()
async def ban(self, ctx, member : discord.Member, *, reason=None):
if reason is None:
reason = "No reason given."
await member.ban(reason=reason)
await ctx.send(f"{ctx.author.mention} has banned {member} from the server!")
# Using ?ban @TestAccount
# @Nuggets has banned TestAccount#1234 from the server!
# Ban reason = No reason given
# Using ?ban @TestAccount lmao
# @Nuggets has banned TestAccount#1234 from the server!
# Ban reason = lmao
def setup(bot):
bot.add_cog(Moderation(bot))
JartexNetwork is one of the largest Minecraft servers!
JartexNetwork was formed in 2015, and has developed its own plugins ever since!
We count with Factions, SkyBlock, Prison, Survival, Lifesteal, KitPvP, Gens,
Bedwars, SkyWars, and TheBridge!
Come join us now at: play.jartexnetwork.com
If you enjoy playing, feel free to support us by purchasing some packages, ranging from crate keys, to permanent ranks.