Scale up as you grow — whether you're running one virtual machine or ten thousand.

From GPU-powered inference and Kubernetes to managed databases and storage, get everything you need to build, scale, and deploy intelligent applications.

**I am trying to code a bot for discord, but I do not have a laptop or an android. The chromebook I have is a school owned one, so things like downloads and developer mode are blocked. I can’t get the linux demo either. If it is not possible to code on this through web, then I do have an Iphone, which I have been told is impossible to code on… I’m not worried about how long the code takes to develop, I just want to be able to code it without any laptop.
Additionally, all attempts to use a code given with this website: https://github.com/Rapptz/discord.py/tree/async
I enter this example:
import discord
import asyncio
client = discord.Client()
@client.event
async def on_ready():
print('Logged in as')
print(client.user.name)
print(client.user.id)
print('------')
@client.event
async def on_message(message):
if message.content.startswith('!test'):
counter = 0
tmp = await client.send_message(message.channel, 'Calculating messages...')
async for log in client.logs_from(message.channel, limit=100):
if log.author == message.author:
counter += 1
await client.edit_message(tmp, 'You have {} messages.'.format(counter))
elif message.content.startswith('!sleep'):
await asyncio.sleep(5)
await client.send_message(message.channel, 'Done sleeping')
client.run('token')
but it gives me a syntax error like this:
Unknown Error.
File "<stdin>", line 7
async def on_ready():
^
SyntaxError: invalid syntax
Unknown Error.
This is insanely frustrating… can someone assist?
(i am using https://thumbsdb.herokuapp.com/python/?state={"folderId":"0AIiLka239X73Uk9PVA","action":"create","userId":"117443184978319349054"} and https://www.onlinegdb.com/ to enter and run code)
6a2e133a62fe4859920f9233303d8c
PowerAdSpy
phosphide
lking
santoshpatil
Rory McEwan
crisdan
kdcarter17
garantieheld
7c31733a76c942f69d6186090a3787
36d56192d3114513857618b22686be