mirror of
				https://github.com/osmarks/autobotrobot
				synced 2025-10-31 16:02:59 +00:00 
			
		
		
		
	no pings via apiotelephony
This commit is contained in:
		| @@ -22,8 +22,8 @@ def setup(bot): | |||||||
|             "original_time_spec": time |             "original_time_spec": time | ||||||
|         } |         } | ||||||
|         try: |         try: | ||||||
|             time = util.parse_time(time) |  | ||||||
|             now = datetime.now(tz=timezone.utc) |             now = datetime.now(tz=timezone.utc) | ||||||
|  |             time = util.parse_time(time) | ||||||
|         except: |         except: | ||||||
|             await ctx.send(embed=util.error_embed("Invalid time (wrong format/too large/non-integer months or years)")) |             await ctx.send(embed=util.error_embed("Invalid time (wrong format/too large/non-integer months or years)")) | ||||||
|             return |             return | ||||||
|   | |||||||
| @@ -70,7 +70,7 @@ def setup(bot): | |||||||
|             if other_webhook: |             if other_webhook: | ||||||
|                 await discord.Webhook.from_url(other_webhook, adapter=discord.AsyncWebhookAdapter(bot.http._HTTPClient__session)).send( |                 await discord.Webhook.from_url(other_webhook, adapter=discord.AsyncWebhookAdapter(bot.http._HTTPClient__session)).send( | ||||||
|                     content=message.content, username=message.author.name, avatar_url=message.author.avatar_url, |                     content=message.content, username=message.author.name, avatar_url=message.author.avatar_url, | ||||||
|                     allowed_mentions=discord.AllowedMentions(everyone=False)) |                     allowed_mentions=discord.AllowedMentions(everyone=False, roles=False, users=False)) | ||||||
|             else: |             else: | ||||||
|                 m = f"**{message.author.name}**: " |                 m = f"**{message.author.name}**: " | ||||||
|                 m += message.content[:2000 - len(m)] |                 m += message.content[:2000 - len(m)] | ||||||
| @@ -80,7 +80,6 @@ def setup(bot): | |||||||
|     @telephone.command() |     @telephone.command() | ||||||
|     @commands.check(server_mod_check) |     @commands.check(server_mod_check) | ||||||
|     async def setup(ctx): |     async def setup(ctx): | ||||||
|         await ctx.send("Configuring...") |  | ||||||
|         num = generate_address(ctx) |         num = generate_address(ctx) | ||||||
|         await ctx.send(f"Your address is {num}.") |         await ctx.send(f"Your address is {num}.") | ||||||
|         info = await get_addr_config(num) |         info = await get_addr_config(num) | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user