Skip to content
ColdCalzone edited this page Nov 25, 2021 · 3 revisions

Discord Plays

A Discord bot for playing games very obtusely

Documentation

Parts of instructions surrounded by <> are required.
Parts of instructions surrounded by () are optional.


Actions are defined very simply like this:

<action name>:

The action name can be anything, it can even have spaces


You can call actions in other actions, like this:

<action name>

This will fully run the action until it hits end, where it will return to where the orignal action was.


Actions have a few very simple instructions:

move <direction> <distance>

Move the mouse cursor in the specified direction the specified distance
direction: up, down, left, or right.
distance: Any number value, in pixels.


press (mouse) <button>

Press the specified button.
mouse: Specifies if the button is a mouse button. If used, the button must be left, middle, or right.
button: Any key on the keyboard. Valid keys are:

alt,
backspace,
back,
caps_lock,
control,
ctrl,
del,
delete,
down,
end,
esc,
escape,
f1,
f10,
f11,
f12,
f2,
f3,
f4,
f5,
f6,
f7,
f8,
f9,
home,
left,
win,
windows,
meta,
command,
super,
option,
pgdown,
pg_down,
page_down,
pgup,
pg_up,
page_up,
return,
enter,
right,
shift,
space,
tab,
up,
a,
b,
c,
d,
e,
f,
g,
h,
i,
j,
k,
l,
m,
n,
o,
p,
q,
r,
s,
t,
u,
v,
w,
x,
y,
z,
1,
2,
3,
4,
5,
6,
7,
8,
9,
`,
-,
=,
[,
],
\,
;,
',
",",
.,
/

release (mouse) <button>

Release the specified button.
mouse: Specifies if the button is a mouse button. If used, the button must be left, middle, or right.
button: Any key on the keyboard.


hold (mouse) <button> <time>

Hold the specified button for the specified time.
mouse: Specifies if the button is a mouse button. If used, the button must be left, middle, or right.
button: Any key on the keyboard.
time: A time in milliseconds.


wait <time>

Wait the specified time in milliseconds.
time: A time in milliseconds.


type <text>

Type the specified text instantly.
text: Any string of characters broken by a new line.


end

Required at the end of an action. Tells the program when to stop.