Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 21 additions & 0 deletions cogs/helpcmds.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,27 @@ async def deepfly(self, ctx: commands.Context):
await ctx.send(file=file, embed=embed)
await ctx.send(file=bindconfig)

@commands.command()
async def pseudofly(self, ctx: commands.Context):
file = discord.File('data/avatar.png', filename='avatar.png')
bindconfig = discord.File('data/pseudofly.txt', filename='pseudofly.txt')
embed = discord.Embed(
title="How to bind and configure pseudofly:",
description="It is __highly recommended to read__ the article below thoroughly, "
"you may learn a bunch of useful things."
"\n\n**URL:**"
"\nhttps://wiki.ddnet.org/wiki/Pseudofly"
"\n\nIf you prefer to not read the article:"
"\n\nMove the attached text file to your config directory, "
"and then type: `exec pseudofly.txt` into the ingame console (F1)."
"\nTo toggle pseudofly on/off, press \"C\" on your keyboard.",
colour=discord.Colour.random())

embed.set_thumbnail(url='attachment://avatar.png')

await ctx.send(file=file, embed=embed)
await ctx.send(file=bindconfig)

@commands.command()
async def skins(self, ctx: commands.Context):
file = discord.File('data/avatar.png', filename='avatar.png')
Expand Down
3 changes: 3 additions & 0 deletions data/pseudofly.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
echo pseudofly: ON
bind mouse2 "+hook; +toggle cl_dummy_hammer 1 0"
bind c "echo pseudofly: OFF; cl_dummy_hammer 0; bind mouse2 +hook; bind c exec pseudofly.txt"