Coverage for cmds/others.py: 27%

Shortcuts on this page

r m x   toggle line displays

j k   next/prev highlighted chunk

0   (zero) top of page

1   (one) first highlighted chunk

15 statements  

1""" 

2others.py 

3 

4includes misc. commands 

5""" 

6 

7import error 

8 

9async def wow(message, *args): 

10 """ 

11 wow() 

12 

13 returns wow @user 

14 """ 

15 

16 # check for args 

17 if len(args) > 0: 

18 raise error.UnknownArgumentError 

19 

20 # return wow 

21 return f"wow <@{message.author.id}>" 

22 

23 

24async def report(*args): 

25 """ 

26 report() 

27 

28 does nothing 

29 """ 

30 

31 # fix args 

32 args = args[1:] 

33 

34 # check for args 

35 if len(args) > 0: 

36 raise error.UnknownArgumentError 

37 

38 # return output 

39 return "https://github.com/zwang20/deployment-bot-6/issues" 

40 

41async def returnf(*args): 

42 """ 

43 returnf() 

44 

45 does nothing 

46 """ 

47 

48 # fix args 

49 args = args[1:] 

50 

51 # check for args 

52 if len(args) > 0: 

53 raise error.UnknownArgumentError 

54 

55 # return output 

56 return "f"