Skip to content

Commit

Permalink
[Discord] Add lcm command
Browse files Browse the repository at this point in the history
  • Loading branch information
Harmon758 committed Jan 13, 2023
1 parent 6c585db commit 59fa5b3
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions Discord/cogs/math.py
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,11 @@ async def gcd(self, ctx, *integers: int):
"""Greatest common divisor"""
await ctx.embed_reply(math.gcd(*integers))

@commands.command(aliases = ["least_common_multiple"])
async def lcm(self, ctx, *integers: int):
"""Least common multiple"""
await ctx.embed_reply(math.lcm(*integers))

@commands.command(aliases = ['π'])
async def pi(self, ctx, digits: int = 3, start: int = 1):
'''Digits of pi'''
Expand Down

0 comments on commit 59fa5b3

Please sign in to comment.