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